/* ==========================================================================
   Imamoto Lab — Design System
   白ベース / ブルーアクセント / ミニマル
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --text: #1a202c;
  --text-sub: #4a5568;
  --muted: #718096;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eef3fe;
  --accent-border: #d7e3fc;
  --border: #e8ecf2;
  --border-strong: #d5dbe4;
  --radius: 16px;
  --radius-sm: 10px;
  --font-jp: "Noto Sans JP", sans-serif;
  --font-en: "Outfit", "Noto Sans JP", sans-serif;
  --container: 1160px;
  --header-h: 72px;
  --shadow-sm: 0 1px 3px rgba(23, 32, 55, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(23, 32, 55, 0.14);
  --shadow-lg: 0 24px 48px -20px rgba(23, 32, 55, 0.2);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-jp);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-weight: 400;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.35s ease;
  border-bottom: 1px solid transparent;
  color: #fff;
}

/* 下スクロールで隠れ、上スクロールで現れる */
.site-header.header-hidden {
  transform: translateY(-100%);
}

.site-header.scrolled,
.site-header.solid,
.site-header.menu-open {
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  color: var(--text);
  box-shadow: 0 4px 20px -12px rgba(23, 32, 55, 0.12);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.85;
  position: relative;
  padding: 6px 0;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-header:not(.scrolled):not(.solid) .nav-desktop a::after {
  background: #fff;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  opacity: 1;
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  transform: scaleX(1);
}

/* .nav-desktop a の padding に負けないよう詳細度を上げる */
.nav-desktop a.nav-cta,
a.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 11px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
  opacity: 1 !important;
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-desktop a.nav-cta::after,
a.nav-cta::after {
  display: none !important;
}

.nav-desktop a.nav-cta:hover,
a.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  align-items: center;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 8px 24px 20px;
  display: none;
}

.nav-mobile.open {
  display: block;
  animation: menuIn 0.25s ease;
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-mobile a {
  display: block;
  padding: 13px 4px;
  font-weight: 500;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.nav-mobile li:last-child a {
  border-bottom: 0;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--accent);
  padding-left: 10px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
  padding: calc(var(--header-h) + 40px) 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 14s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 18, 30, 0.66) 0%,
    rgba(13, 18, 30, 0.56) 60%,
    rgba(13, 18, 30, 0.7) 100%
  );
}

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

/* ヒーローの登場アニメーション（時間差） */
.hero-inner > * {
  opacity: 0;
  animation: heroUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-inner .hero-eyebrow {
  animation-delay: 0.15s;
}

.hero-inner .hero-title {
  animation-delay: 0.3s;
}

.hero-inner .hero-lead {
  animation-delay: 0.45s;
}

.hero-inner .hero-actions {
  animation-delay: 0.6s;
}

@keyframes heroUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 34px;
}

.hero-title {
  font-size: clamp(2.1rem, 5.6vw, 4rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin-bottom: 26px;
}

.hero-lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin: 0 auto 44px;
  letter-spacing: 0.06em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
  animation: cue 2s ease-in-out infinite;
}

@keyframes cue {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1;
  padding: 18px 40px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.5);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(37, 99, 235, 0.55);
}

/* ヒーロー上の白ボタン */
.btn-white {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.4);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, 0.45);
}

/* ヒーロー上の枠線ボタン */
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.85);
}

/* 白背景セクション用の枠線ボタン */
.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: #fff;
}

.btn-outline:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 110px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

.eyebrow {
  display: block;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--accent);
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.section-lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.98rem;
}

.sub-title {
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.sub-title::before,
.sub-title::after {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--border-strong);
}

/* ---------- Cards（共通） ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-copy h3 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 24px;
}

.about-copy p {
  color: var(--text-sub);
  font-size: 0.96rem;
  margin-bottom: 18px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature {
  display: flex;
  gap: 18px;
  padding: 24px 26px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  padding: 38px 32px;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-icon,
.feature-icon {
  transition: transform 0.3s ease, background 0.3s ease;
}

.service-card:hover .service-icon,
.feature:hover .feature-icon {
  transform: translateY(-3px) scale(1.06);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.service-card > p {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 22px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-sub);
  padding: 5px 0;
}

.check-list svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

/* ---------- Works ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 90px;
}

.work-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.work-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--border);
}

/* 制作実績のライブプレビュー（.tpl-preview併用時も16:9を維持） */
.work-thumb.tpl-preview {
  aspect-ratio: 16 / 9;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card:hover .work-thumb img {
  transform: scale(1.04);
}

.work-body {
  padding: 26px 28px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.work-body h3,
.work-body h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.work-body p {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-bottom: 18px;
  flex: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-sub);
  background: var(--bg-alt);
}

.tag-accent {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.25s ease, color 0.25s ease;
}

.text-link:hover {
  color: var(--accent-dark);
  gap: 10px;
}

/* Apps */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.app-card {
  padding: 24px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-card img {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}

.app-card:hover img {
  transform: scale(1.05) translateY(-2px);
}

.app-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.app-card p {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 14px;
  flex: 1;
}

.app-card .text-link {
  font-size: 0.8rem;
}

/* ---------- Pricing ---------- */
.maintenance-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 40px;
  margin-bottom: 70px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
}

.maintenance-banner h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.maintenance-banner .desc {
  font-size: 0.86rem;
  color: var(--text-sub);
  max-width: 560px;
}

.maintenance-price {
  text-align: right;
}

.maintenance-price .price {
  font-family: var(--font-en);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.maintenance-price .price small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-sub);
}

.maintenance-price .note {
  font-size: 0.78rem;
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 80px;
  align-items: stretch;
}

/* プランごとのテーマカラー */
.pricing-grid .plan-card:nth-child(1) {
  --plan-accent: #2563eb;
  --plan-soft: #eef4fe;
  --plan-border: #d7e3fc;
}

.pricing-grid .plan-card:nth-child(2) {
  --plan-accent: #059669;
  --plan-soft: #e7f6f0;
  --plan-border: #c9ecdd;
}

.pricing-grid .plan-card:nth-child(3) {
  --plan-accent: #7c3aed;
  --plan-soft: #f4effe;
  --plan-border: #e5dafb;
}

.plan-card {
  position: relative;
  padding: 44px 34px 38px;
  display: flex;
  flex-direction: column;
}

.plan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(
    90deg,
    var(--plan-accent, var(--accent)),
    color-mix(in srgb, var(--plan-accent, var(--accent)) 40%, #fff)
  );
}

.plan-card.featured {
  border: 2px solid var(--plan-accent, var(--accent));
  box-shadow: var(--shadow-md);
}

.plan-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 7px 22px;
  border-radius: 999px;
  background: var(--plan-accent, var(--accent));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.5);
}

.plan-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 26px;
}

.plan-price {
  text-align: center;
  padding: 22px 16px;
  border-radius: var(--radius-sm);
  background: var(--plan-soft, var(--bg-alt));
  border: 1px solid var(--plan-border, var(--border));
  margin-bottom: 10px;
}

.plan-price .label {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.plan-price .amount {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--plan-accent, var(--text));
}

.plan-price .amount small {
  font-size: 0.5em;
  font-weight: 700;
  margin-left: 1px;
}

.plan-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--plan-accent, var(--accent));
  font-weight: 500;
  margin-bottom: 26px;
}

.plan-card .check-list {
  flex: 1;
  margin-bottom: 30px;
}

.plan-card .check-list svg {
  color: var(--plan-accent, var(--accent));
}

.plan-card .btn {
  width: 100%;
  padding: 14px 20px;
}

/* スマホ用プラン比較CTA（デスクトップでは非表示） */
.plans-cta {
  display: none;
}

/* Options */
.options-wrap {
  padding: 48px 44px;
}

.options-wrap > h3 {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.options-wrap > .desc {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 36px;
}

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

.option-card {
  padding: 26px 24px;
  text-align: center;
  border-radius: var(--radius-sm);
}

.option-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.option-card p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.option-card .price {
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.option-card .price small {
  font-size: 0.72em;
  font-weight: 600;
  color: var(--text-sub);
}

.option-card .note {
  font-size: 0.74rem;
  color: var(--muted);
  margin: 4px 0 0;
}

/* オプションごとの色分け（3色を循環） */
.options-grid .option-card:nth-child(3n + 1) {
  --opt-accent: #2563eb;
  --opt-soft: #eef4fe;
  --opt-border: #d7e3fc;
}

.options-grid .option-card:nth-child(3n + 2) {
  --opt-accent: #059669;
  --opt-soft: #e7f6f0;
  --opt-border: #c9ecdd;
}

.options-grid .option-card:nth-child(3n) {
  --opt-accent: #7c3aed;
  --opt-soft: #f4effe;
  --opt-border: #e5dafb;
}

.options-grid .option-card {
  background: var(--opt-soft, #fff);
  border-color: var(--opt-border, var(--border));
}

.options-grid .option-card:hover {
  border-color: var(--opt-border, var(--border-strong));
}

.options-grid .option-card h4::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--opt-accent, var(--accent));
  margin-right: 8px;
  vertical-align: 1px;
}

.options-grid .option-card .price {
  color: var(--opt-accent, var(--accent));
}

/* ---------- Contact ---------- */
.contact-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 52px 48px;
}

.contact-wrap > p {
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-sub);
  margin-bottom: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.form-grid .form-field {
  margin-bottom: 0;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-sub);
}

.required {
  color: #e11d48;
  margin-left: 2px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

.form-submit {
  text-align: center;
  margin-top: 34px;
}

.form-submit .btn {
  min-width: 240px;
}

.form-submit .btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

#form-message {
  text-align: center;
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}

#form-message.hidden {
  display: none;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: color 0.25s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "Q";
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}

.faq-item summary .q-text {
  flex: 1;
}

.faq-item summary .chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.3s ease;
}

.faq-item[open] summary .chevron {
  transform: rotate(180deg);
}

.faq-item[open] summary {
  color: var(--accent);
}

.faq-body {
  padding: 0 26px 26px 80px;
  color: var(--text-sub);
  font-size: 0.9rem;
}

.faq-item[open] .faq-body {
  animation: faqIn 0.35s ease;
}

@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-body p {
  margin-bottom: 10px;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

.faq-body ul {
  margin: 10px 0;
  padding-left: 4px;
}

.faq-body li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 0.86rem;
}

.faq-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.faq-example {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.faq-example .label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 8px;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  margin-top: 80px;
}

.cta-band p {
  color: var(--text-sub);
  margin-bottom: 26px;
}

/* ---------- Page hero（下層ページ用） ---------- */
.page-hero {
  padding: calc(var(--header-h) + 80px) 0 60px;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.page-hero h2,
.page-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 700;
}

.page-hero .section-lead {
  max-width: 620px;
  margin-inline: auto;
}

/* ---------- Success page ---------- */
.success-wrap {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.success-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e7f7ee;
  border: 1px solid #bce8d0;
  color: #16a34a;
}

.success-icon svg {
  width: 38px;
  height: 38px;
}

.success-wrap h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.success-wrap p {
  color: var(--text-sub);
  margin-bottom: 38px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1f2733;
  color: #fff;
  padding: 70px 0 36px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 52px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: #9aa5b4;
}

.footer-cols {
  display: flex;
  gap: 72px;
  flex-wrap: wrap;
}

.footer-col h3 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c3ccd8;
  margin-bottom: 18px;
  font-family: var(--font-en);
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.88rem;
  color: #9aa5b4;
  transition: color 0.25s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-mail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #9aa5b4;
}

.footer-mail svg {
  width: 17px;
  height: 17px;
  color: #7da2f0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 30px;
  text-align: center;
  font-size: 0.82rem;
  color: #9aa5b4;
}

.footer-bottom p {
  margin-bottom: 6px;
}

/* ---------- Reveal animation ---------- */
/* transitionではなくanimationを使い、カードのホバー用transitionと干渉させない */
[data-reveal] {
  opacity: 0;
}

[data-reveal].in-view {
  opacity: 1;
  animation: revealUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .apps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .options-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
    margin-bottom: 80px;
  }
}

@media (max-width: 860px) {
  .section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-lead {
    font-weight: 400;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 44px;
  }

  .sub-title {
    margin-bottom: 24px;
  }

  .maintenance-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 20px;
    margin-bottom: 36px;
  }

  .maintenance-price {
    text-align: left;
  }

  .maintenance-price .price {
    font-size: 1.7rem;
  }

  .contact-wrap {
    padding: 28px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .options-wrap {
    padding: 26px 18px;
  }

  .faq-item summary {
    padding: 15px 16px;
    gap: 12px;
    font-size: 0.92rem;
  }

  .faq-item summary::before {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .faq-body {
    padding: 0 16px 18px;
  }
}

/* スマホ：構造はコンパクトに、文字と余白はゆったりと */
@media (max-width: 560px) {
  .container {
    padding-inline: 20px;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-lead {
    margin-top: 12px;
    font-size: 0.9rem;
  }

  .eyebrow {
    font-size: 0.72rem;
    margin-bottom: 10px;
  }

  .sub-title {
    font-size: 1.15rem;
    margin-bottom: 22px;
  }

  /* ヒーロー */
  .hero {
    min-height: 92svh;
    padding: calc(var(--header-h) + 24px) 0 64px;
  }

  .hero-eyebrow {
    font-size: 0.74rem;
    padding: 7px 16px;
    margin-bottom: 24px;
  }

  .hero-title {
    font-size: 1.95rem;
    margin-bottom: 18px;
  }

  .hero-lead {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 0.92rem;
  }

  /* About */
  .about-copy h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }

  .about-copy p {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }

  .feature-list {
    gap: 12px;
  }

  .feature {
    padding: 16px;
    gap: 14px;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .feature-icon svg {
    width: 19px;
    height: 19px;
  }

  .feature h4 {
    font-size: 0.98rem;
  }

  .feature p {
    font-size: 0.86rem;
  }

  /* サービス */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 24px 20px;
  }

  .service-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    margin-bottom: 16px;
  }

  .service-icon svg {
    width: 24px;
    height: 24px;
  }

  .service-card h3 {
    font-size: 1.08rem;
    margin-bottom: 10px;
  }

  .service-card > p {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }

  .check-list li {
    font-size: 0.87rem;
    padding: 4px 0;
  }

  /* 制作実績 */
  .work-body {
    padding: 20px 18px 24px;
  }

  .work-body h3,
  .work-body h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }

  .work-body p {
    font-size: 0.88rem;
    margin-bottom: 14px;
  }

  .tags {
    gap: 6px;
    margin-bottom: 14px;
  }

  .tag {
    font-size: 0.7rem;
    padding: 3px 10px;
  }

  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .app-card {
    padding: 18px 14px;
  }

  .app-card img {
    width: 64px;
    height: 64px;
    border-radius: 15px;
    margin-bottom: 14px;
  }

  .app-card h4 {
    font-size: 0.88rem;
    margin-bottom: 6px;
  }

  .app-card p {
    font-size: 0.78rem;
    margin-bottom: 10px;
  }

  /* 料金（pricing.html等の通常カード） */
  .pricing-grid {
    gap: 28px;
    margin-bottom: 46px;
  }

  /* 3プランを1画面で比較できるコンパクト表示 */
  .pricing-grid.plans-compare {
    gap: 12px;
    margin-bottom: 16px;
  }

  .plans-compare .plan-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    row-gap: 2px;
    padding: 18px 18px 16px 24px;
  }

  /* テーマカラーのバーを左端に縦向きで表示 */
  .plans-compare .plan-card::before {
    top: 0;
    bottom: 0;
    right: auto;
    width: 5px;
    height: auto;
    border-radius: var(--radius) 0 0 var(--radius);
    background: linear-gradient(
      180deg,
      var(--plan-accent, var(--accent)),
      color-mix(in srgb, var(--plan-accent, var(--accent)) 55%, #fff)
    );
  }

  .plans-compare .plan-card h3 {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
    font-size: 1.02rem;
    margin: 0;
  }

  .plans-compare .plan-note {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    font-size: 0.74rem;
    margin: 0;
  }

  .plans-compare .plan-price,
  .plans-compare .plan-card.featured .plan-price {
    grid-column: 2;
    grid-row: 1 / span 2;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    text-align: right;
  }

  .plans-compare .plan-price .label {
    display: inline;
    font-size: 0.72rem;
    margin-right: 6px;
  }

  .plans-compare .plan-price .amount {
    font-size: 1.6rem;
  }

  .plans-compare .plan-card .check-list {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    margin: 10px 0 0;
  }

  .plans-compare .plan-card .check-list li {
    font-size: 0.8rem;
    padding: 2px 0;
    gap: 6px;
  }

  .plans-compare .plan-card .check-list svg {
    width: 13px;
    height: 13px;
  }

  .plans-compare .plan-card .btn {
    display: none;
  }

  .plans-compare .plan-badge {
    left: auto;
    right: 14px;
    transform: translateY(-50%);
    font-size: 0.68rem;
    padding: 5px 14px;
  }

  .plans-cta {
    display: block;
    text-align: center;
    margin-bottom: 46px;
  }

  .plans-cta .btn {
    width: 100%;
  }

  .maintenance-banner h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  .maintenance-banner .desc {
    font-size: 0.86rem;
  }

  .options-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .options-wrap > h3 {
    font-size: 1.15rem;
  }

  .options-wrap > .desc {
    font-size: 0.82rem;
    margin-bottom: 18px;
  }

  /* オプションはカードの縦積みをやめてリスト型の行レイアウトに */
  .option-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 14px;
    text-align: left;
    padding: 14px 16px;
    background: var(--opt-soft, var(--bg-alt));
    border-radius: 12px;
    box-shadow: none;
  }

  .option-card:hover {
    transform: none;
    box-shadow: none;
  }

  .option-card h4 {
    grid-column: 1;
    grid-row: 1;
    font-size: 0.92rem;
    margin: 0;
  }

  .option-card p {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.78rem;
    margin: 2px 0 0;
  }

  .option-card .price {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.02rem;
    text-align: right;
    white-space: nowrap;
  }

  .option-card .note {
    grid-column: 1 / -1;
    grid-row: 3;
    font-size: 0.72rem;
    margin: 3px 0 0;
  }

  /* お問い合わせ */
  .contact-wrap > p {
    font-size: 0.9rem;
    margin-bottom: 26px;
  }

  .form-grid {
    gap: 16px;
  }

  .form-field {
    margin-bottom: 16px;
    gap: 6px;
  }

  .form-field label {
    font-size: 0.82rem;
  }

  .form-field input,
  .form-field textarea {
    padding: 13px 15px;
  }

  textarea {
    min-height: 120px;
  }

  .form-submit {
    margin-top: 24px;
  }

  .form-submit .btn {
    width: 100%;
    min-width: 0;
  }

  /* FAQ */
  .faq-list {
    gap: 12px;
  }

  .faq-body {
    font-size: 0.88rem;
  }

  .cta-band {
    margin-top: 44px;
  }

  /* ページヒーロー（下層） */
  .page-hero {
    padding: calc(var(--header-h) + 44px) 0 36px;
  }

  /* フッター */
  .site-footer {
    padding: 48px 0 26px;
  }

  .footer-grid {
    gap: 30px;
    margin-bottom: 30px;
  }

  .footer-cols {
    gap: 32px;
  }

  .footer-col h3 {
    margin-bottom: 12px;
  }

  .footer-col li {
    margin-bottom: 8px;
  }

  .footer-col a,
  .footer-mail {
    font-size: 0.84rem;
  }

  .footer-bottom {
    padding-top: 22px;
    font-size: 0.78rem;
  }
}

/* ---------- テンプレート一覧ページ ---------- */
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.template-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tpl-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.tpl-preview iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 800px;
  border: 0;
  transform-origin: 0 0;
  pointer-events: none;
  background: #fff;
}

.tpl-preview-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 32, 55, 0);
  transition: background 0.25s ease;
}

.tpl-preview-link span {
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.tpl-preview-link:hover,
.tpl-preview-link:focus-visible {
  background: rgba(23, 32, 55, 0.45);
}

.tpl-preview-link:hover span,
.tpl-preview-link:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.tpl-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-sm);
}

.tpl-body {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tpl-head {
  margin-bottom: 12px;
}

.tpl-number {
  display: block;
  font-family: var(--font-en);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.tpl-head h2 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
}

.tpl-body > p {
  color: var(--text-sub);
  font-size: 0.92rem;
  line-height: 1.9;
  margin-bottom: 16px;
}

.tpl-body .tags {
  margin-bottom: 18px;
}

.tpl-body .text-link {
  margin-top: auto;
}

.tpl-note {
  margin-top: 48px;
  padding: 30px 32px;
}

.tpl-note h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.tpl-note ul {
  display: grid;
  gap: 8px;
}

.tpl-note li {
  position: relative;
  padding-left: 20px;
  color: var(--text-sub);
  font-size: 0.9rem;
  line-height: 1.8;
}

.tpl-note li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 860px) {
  .template-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tpl-body {
    padding: 22px 22px 24px;
  }

  .tpl-note {
    margin-top: 36px;
    padding: 24px 22px;
  }

  /* タッチ端末ではホバーが無いのでボタンを常時表示 */
  .tpl-preview-link span {
    opacity: 1;
    transform: none;
  }
}

/* ---------- トップページ：テンプレート誘導 ---------- */
.templates-teaser {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.teaser-thumb {
  display: block;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.teaser-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.teaser-thumb:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.templates-cta {
  text-align: center;
}

.templates-cta .note {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 14px;
}

@media (max-width: 760px) {
  .templates-teaser {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
