/* Studio Numazu Works - simple corporate theme */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #0b1220;
  --muted: #4b5565;
  --border: rgba(10, 22, 40, 0.12);
  --accent: #158cc9;
  --accent-2: #0b6fa6;
  --accent-soft: rgba(21, 140, 201, 0.14);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 14px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
}
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
header {
  padding: 1.75rem 0 1.25rem;
  text-align: center;
}
body.has-hero .page-title,
body.has-page-hero .page-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body.has-hero .lead#page-lead,
body.has-page-hero .lead#page-lead {
  display: none;
}
.logo {
  margin: 0;
  line-height: 0;
}
.logo a {
  display: inline-block;
  text-decoration: none;
}
.logo a:hover {
  opacity: 0.9;
}
.logo-img {
  display: block;
  height: auto;
  max-width: 500px;
}
h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-top: 0.5rem;
  color: var(--text);
}
.lead {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
nav {
  margin: 2rem 0;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  align-items: center;
}
.nav-list a {
  color: rgba(11, 18, 32, 0.82);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-list a:hover {
  color: var(--accent);
}
.nav-list a.external::after {
  content: " ↗";
  font-size: 0.75em;
  opacity: 0.8;
}
.nav-list a[aria-current="page"] {
  color: var(--accent);
}
main {
  padding: 2rem 0;
}

/* Hero (full-bleed) */
.hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 2rem;
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  border-radius: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 18, 32, 0.75) 0%, rgba(21, 140, 201, 0.4) 100%);
  border-radius: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 2rem 1.5rem;
  max-width: 640px;
}
.hero-inner h1 {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  margin-top: 0;
}
.hero-inner .lead {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
  margin-top: 0.5rem;
}
.hero-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-actions .btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  border: none;
}
.hero-actions .btn.primary {
  background: var(--accent);
  color: #fff;
}
.hero-actions .btn:hover {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

/* Section with image (card top image) */
.section-image {
  overflow: hidden;
  padding: 0;
}
.section-image .section-image-img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
}
.section-image .section-image-body {
  padding: 1.6rem;
}

/* Page hero (subpage banner) */
.page-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 2rem;
  min-height: 28vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 18, 32, 0.7) 0%, rgba(21, 140, 201, 0.35) 100%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 1.5rem;
}
.page-hero-inner h1 { color: #fff; margin-top: 0; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.page-hero-inner .lead { color: rgba(255,255,255,0.95); text-shadow: 0 1px 3px rgba(0,0,0,0.25); }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* こんなご相談に対応します */
.consultation-section h2 {
  margin-bottom: 1rem;
}
.consultation-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.consultation-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: var(--text);
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}
.consultation-list li:last-child {
  border-bottom: none;
}
.consultation-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* 企業様向け制作チーム（トップ紹介） */
.intro-section {
  text-align: center;
}
.intro-section h2 {
  margin-bottom: 0.75rem;
}
.intro-lead {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.85;
  margin: 0;
}

/* 下層ページ用メッセージ（料金ページなど） */
.page-message {
  text-align: center;
}
.page-message-lead {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.85;
  margin: 0;
}
.page-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  justify-content: center;
}
.page-title small {
  color: var(--muted);
  font-size: 0.9rem;
}
.btn {
  display: inline-block;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}
.btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.btn.ghost {
  background: transparent;
}
footer {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}
footer a {
  color: inherit;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* Works grid + lightbox */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.works-thumb {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 16/9;
}
.works-thumb:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.works-thumb:hover .works-thumb-play {
  background: var(--accent);
  color: #fff;
  transform: translate(-50%, -50%) scale(1.05);
}
.works-thumb-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.works-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  background: #f3f7fc;
}
.card > .works-thumb-img {
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 1px solid var(--border);
}
.works-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(21, 140, 201, 0.9);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  transition: transform 0.2s, background 0.2s, color 0.2s;
  z-index: 1;
}

.works-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}
.works-section-title:first-of-type {
  margin-top: 0;
}
.works-section-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1rem 0;
}
.works-pdf-card .works-pdf-thumb {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  aspect-ratio: 16/9;
  background: var(--bg);
}
.works-pdf-thumb:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.works-pdf-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--muted);
  background: linear-gradient(135deg, rgba(21, 140, 201, 0.08) 0%, rgba(21, 140, 201, 0.02) 100%);
}
.works-pdf-card a[href$=".pdf"] {
  color: var(--accent);
  text-decoration: none;
}
.works-pdf-card a[href$=".pdf"]:hover {
  text-decoration: underline;
}

/* PDFモーダル（ライトボックス風） */
.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
.pdf-modal[hidden] {
  display: none;
}
.pdf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.pdf-modal-box {
  position: relative;
  width: 95vw;
  max-width: 1000px;
  height: 90vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.pdf-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.pdf-modal-close:hover {
  background: rgba(0, 0, 0, 0.75);
}
.pdf-modal-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.is-open {
  display: flex;
}
.lightbox-video-wrap {
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
}
.lightbox-video-wrap video {
  width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  background: #000;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: var(--text);
  font-size: 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}
.lightbox-caption {
  margin-top: 0.75rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Video dialog (native <dialog>) */
.video-dialog {
  border: none;
  padding: 0;
  max-width: 96vw;
  max-height: 96vh;
  background: transparent;
  box-shadow: none;
}
.video-dialog::backdrop {
  background: rgba(0, 0, 0, 0.85);
}
.video-dialog-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.video-dialog-wrap video {
  width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  background: #000;
  display: block;
}
.video-dialog-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
}
.video-dialog-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.video-dialog-caption {
  margin-top: 0.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.about-info {
  margin-top: 0.8rem;
}
.about-info p {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.about-info p:first-child {
  margin-top: 0;
}
.about-info .pill {
  flex: 0 0 6em;
  white-space: nowrap;
}

/* Layout helpers */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
.pill {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(21, 140, 201, 0.06);
  color: rgba(11, 18, 32, 0.85);
}
a.pill {
  text-decoration: none;
}
a.pill:hover {
  background: rgba(21, 140, 201, 0.12);
}

/* 料金ページ冒頭（制作料金の目安） */
.pricing-intro {
  text-align: center;
}
.pricing-intro h2 {
  margin-bottom: 0.75rem;
}
.pricing-intro-lead {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.85;
  margin: 0;
}
.pricing-intro-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* 継続的な制作業務（料金ページ末尾） */
.ongoing-section h2 {
  margin-bottom: 0.75rem;
}
.ongoing-lead {
  margin: 0 0 0.5rem 0;
  color: var(--text);
  font-size: 1rem;
}
.ongoing-list {
  list-style: none;
  margin: 0 0 0.5rem 0;
  padding: 0;
}
.ongoing-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-top: 0.25rem;
  color: var(--text);
}
.ongoing-list li::before {
  content: "・";
  position: absolute;
  left: 0;
}
.ongoing-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.ongoing-cta {
  margin: 1rem 0 0 0;
  font-weight: 600;
  color: var(--accent);
  font-size: 1rem;
}

/* 画像サイズと価格の目安（料金ページ） */
.price-size-section h2 {
  margin-bottom: 0.5rem;
}
.price-size-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.price-size-category {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 1.25rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}
.price-size-category:first-of-type {
  margin-top: 0;
}
.price-size-subcategory {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  margin: 1rem 0 0.5rem;
}
.price-size-subcategory:first-of-type {
  margin-top: 0.5rem;
}
.price-size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
.price-size-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}
.price-size-name {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.price-size-dl {
  margin: 0;
  font-size: 0.9rem;
  display: grid;
  gap: 0.25rem;
}
.price-size-dl dt {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.75rem;
}
.price-size-dl dd {
  margin: 0 0 0.35rem 0;
  color: var(--text);
}
.price-size-dl dd:last-child {
  margin-bottom: 0;
}
.price-size-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.cta-inline {
  margin-top: 1.75rem;
  margin-bottom: 0;
}
.cta {
  margin-top: 2.25rem;
  padding: 2rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, rgba(21, 140, 201, 0.12) 0%, rgba(21, 140, 201, 0.05) 100%);
  box-shadow: var(--shadow), 0 0 0 1px rgba(21, 140, 201, 0.08);
  text-align: center;
}
.cta h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.cta .cta-lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.cta p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}
.cta .cta-lead + .cta-btn,
.cta .cta-btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
}
