:root {
  --bg: #ffffff;
  --bg-alt: #f4f7f9;
  --ink: #1c2838;
  --ink-dim: #5b6b78;
  --accent: #008cb0;
  --accent-dark: #00728f;
  --accent-soft: #e5f3f7;
  --border: #e2e8ec;
  --display: 'M PLUS Rounded 1c', sans-serif;
  --sans: 'Noto Sans JP', sans-serif;
  --max-w: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  width: 40px;
  height: 40px;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  position: relative;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav a:hover { color: var(--ink); }

.nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700 !important;
}

.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* Hero */
.hero {
  padding: 190px 0 110px;
  background: var(--bg);
}

.hero-inner { max-width: 760px; }

.hero.has-video {
  position: relative;
  padding: 0;
  height: 640px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,14,18,0.08) 0%, rgba(8,14,18,0.1) 40%, rgba(8,14,18,0.5) 100%);
}

.hero.has-video .hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 24px 0;
}

.hero.has-video .hero-eyebrow { color: #7fd9ec; text-shadow: 0 2px 14px rgba(0,0,0,0.55); }
.hero.has-video h1 { color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,0.5); }
.hero.has-video h1 .accent { color: #7fd9ec; }
.hero.has-video .hero-lead { color: rgba(255,255,255,0.92); text-shadow: 0 2px 14px rgba(0,0,0,0.5); }

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

.hero.has-video .hero-eyebrow,
.hero.has-video h1,
.hero.has-video .hero-lead,
.hero.has-video .hero-actions {
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero.has-video .hero-eyebrow { animation-delay: 0.15s; }
.hero.has-video h1 { animation-delay: 0.32s; }
.hero.has-video .hero-lead { animation-delay: 0.52s; }
.hero.has-video .hero-actions { animation-delay: 0.72s; }
.hero.has-video .btn-outline {
  border-color: #fff;
  color: #fff;
  background: transparent;
}
.hero.has-video .btn-outline:hover { background: rgba(255,255,255,0.12); }

@media (max-width: 640px) {
  .hero.has-video { height: 560px; }
  .hero.has-video .hero-inner { padding: 70px 24px 0; }
}

.hero-eyebrow {
  color: var(--accent);
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.5;
  margin-bottom: 24px;
  color: var(--ink);
}

.hero h1 .accent { color: var(--accent); }

.hero-lead {
  color: var(--ink-dim);
  font-size: 1.02rem;
  margin-bottom: 36px;
  max-width: 560px;
}

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

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }

.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: #fff;
}

.btn-outline:hover {
  background: var(--accent-soft);
}

/* Sections */
.section { padding: 100px 0; }
.section.alt { background: var(--bg-alt); }

.section-eyebrow {
  color: var(--accent);
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  margin-bottom: 20px;
  color: var(--ink);
}

.section-lead {
  color: var(--ink-dim);
  max-width: 620px;
  margin-bottom: 48px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(28,40,56,0.08);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 24px;
}

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

.service-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: var(--ink);
}

.service-card h3 span {
  display: block;
  font-size: 0.98rem;
  color: var(--ink-dim);
  font-weight: 500;
  margin-top: 4px;
  font-family: var(--sans);
}

.service-card > p {
  color: var(--ink-dim);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.88rem;
  color: var(--ink);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.card-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.card-link:hover { color: var(--accent-dark); }

/* Split sections */
.split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split.reverse .split-inner { direction: rtl; }
.split.reverse .split-inner > * { direction: ltr; }

.split-lead {
  color: var(--ink-dim);
  margin-bottom: 28px;
}

.arrow-list, .icon-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.arrow-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.94rem;
}

.arrow-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.wide-list {
  max-width: 640px;
  gap: 18px;
  margin-bottom: 0;
}

.wide-list li {
  font-size: 1rem;
  color: var(--ink);
}

.icon-check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.icon-check-list .ic {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.icon-check-list b {
  display: block;
  font-size: 0.94rem;
  margin-bottom: 2px;
}

.icon-check-list div {
  font-size: 0.86rem;
  color: var(--ink-dim);
}

.split-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.split-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.split-links a:hover { color: var(--accent-dark); }

.split-photo img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.split-photo.video-embed {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 20px 44px rgba(28,40,56,0.14);
}

.split-photo.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.works-embed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.work-embed {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 16px 36px rgba(28,40,56,0.12);
}

.work-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.work-embed.vertical {
  grid-column: span 1;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9/16;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .works-embed-grid { grid-template-columns: 1fr; }
}

/* Pricing */
.price-table {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
}

.price-row {
  display: grid;
  grid-template-columns: 1.1fr 2fr 1fr;
  gap: 20px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.price-row:last-child { border-bottom: none; }

.price-head {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.price-group {
  padding: 12px 28px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  color: var(--ink-dim);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.price-row .plan {
  font-weight: 700;
  font-size: 0.96rem;
}

.price-row .plan em {
  display: inline-block;
  font-style: normal;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

.price-row .detail {
  color: var(--ink-dim);
  font-size: 0.88rem;
}

.price-row .price {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 1rem;
  text-align: right;
}

.price-note {
  color: var(--ink-dim);
  font-size: 0.84rem;
  line-height: 1.9;
}

/* Quote CTA + modal */
.quote-cta {
  margin-top: 48px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,40,56,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}

.modal-overlay[hidden] { display: none; }

.modal {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 70px rgba(10,14,20,0.35);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-alt);
  border-radius: 50%;
  color: var(--ink-dim);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover { background: var(--accent-soft); color: var(--accent-dark); }

.modal h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--ink);
  padding-right: 30px;
}

.modal > p {
  color: var(--ink-dim);
  font-size: 0.86rem;
  margin-bottom: 28px;
  line-height: 1.8;
}

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

.form-row label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}

.form-row .req {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--accent);
}

.modal .btn {
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  margin-top: 4px;
}

.modal .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin-top: 16px;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 8px;
}

.form-status.success {
  color: #0a6b4a;
  background: #e5f6ee;
}

.form-status.error {
  color: #a3341f;
  background: #fbeae6;
}

/* Profile */
.profile-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: center;
}

.profile-name {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar {
  border-radius: 50%;
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  object-fit: cover;
  background: var(--accent-soft);
}

.profile-name h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.profile-name p { color: var(--ink-dim); }

.profile-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-list li {
  font-size: 0.92rem;
  padding-left: 20px;
  position: relative;
  color: var(--ink-dim);
}

.profile-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(28,40,56,0.08);
}

.contact-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.contact-card h3 {
  font-size: 0.96rem;
  margin-bottom: 4px;
  font-weight: 700;
}

.contact-card p {
  color: var(--ink-dim);
  font-size: 0.85rem;
  word-break: break-all;
}

/* Footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-dim);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--ink-dim);
  text-decoration: none;
}

.footer-links a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 860px) {
  .service-grid { grid-template-columns: 1fr; }
  .split-inner { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-inner { direction: ltr; }
  .split.reverse .split-inner .split-photo { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .profile-card { flex-direction: column; align-items: flex-start; }
  .price-row { grid-template-columns: 1fr; gap: 6px; }
  .price-row .price { text-align: left; }
  .price-head { display: none; }
  .price-row { padding: 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .hero.has-video .hero-eyebrow,
  .hero.has-video h1,
  .hero.has-video .hero-lead,
  .hero.has-video .hero-actions {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 640px) {
  .nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
    transform: translateY(-150%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav.open { transform: translateY(0); opacity: 1; }
  .nav-toggle { display: flex; }
  .hero { padding: 150px 0 80px; }
  .section { padding: 72px 0; }
}
