/* ============ 基本 ============ */
:root {
  --navy: #1f3864;
  --navy-dark: #16294a;
  --accent: #2f6df6;
  --accent-dark: #1e56d6;
  --text: #2b2f36;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --border: #e3e8ef;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(31, 56, 100, 0.08);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: "Yu Gothic", "游ゴシック", "Meiryo UI", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.85; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.sp-only { display: none; }

/* ============ ヘッダー ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo { font-weight: 700; font-size: 1.05rem; color: var(--navy); }

.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--text); font-size: 0.92rem; font-weight: 500; }
.nav a:hover { color: var(--accent); opacity: 1; }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
}
.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(--navy);
  transition: 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ ヒーロー ============ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 60%, #0e1c33 100%);
  color: #fff;
  padding: 88px 0 96px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.7rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.hero-lead {
  margin-top: 20px;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  color: #d7e0ef;
}

.hero-badges {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-badges li {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.88rem;
}
.hero-badges li::before { content: "✓ "; color: #7fd0ff; font-weight: 700; }

.hero-cta { margin-top: 34px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(47, 109, 246, 0.4); }
.btn-primary:hover { background: var(--accent-dark); opacity: 1; }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); opacity: 1; }

/* ============ セクション共通 ============ */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--navy);
  text-align: center;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 14px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 48px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title.left { text-align: left; }
.section-title.left::after { left: 0; transform: none; }

.section-lead { text-align: center; color: var(--muted); margin-bottom: 40px; }

/* ============ サービスカード ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-3px); }
.card h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 8px; }
.card .price {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.card .price .unit { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.card p:not(.price) { font-size: 0.92rem; color: var(--muted); }

/* ============ 制作実績 ============ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.work-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform 0.2s;
  display: block;
}
.work-card:hover { transform: translateY(-3px); opacity: 1; }

.work-thumb {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  overflow: hidden;
  background: #eef2f8;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.thumb-1 { background: linear-gradient(135deg, #33518f, #1f3864); }
.thumb-2 { background: linear-gradient(135deg, #2f6df6, #1e3f9e); }
.thumb-3 { background: linear-gradient(135deg, #2b6777, #14424f); }
.thumb-4 { background: linear-gradient(135deg, #1d6f42, #0e4a2a); }
.thumb-5 { background: linear-gradient(135deg, #b06a1f, #7c4310); }
.thumb-6 { background: linear-gradient(135deg, #6b3fa0, #3f2465); }

.work-body { padding: 20px 22px 24px; }
.tag {
  display: inline-block;
  background: #e8f0fe;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 10px;
}
.work-body h3 { font-size: 1rem; color: var(--navy); margin-bottom: 6px; }
.work-body p { font-size: 0.9rem; color: var(--muted); }
.work-body strong { color: var(--text); }
.work-body .more {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
}

/* ============ ご依頼の流れ ============ */
.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: flow;
}
.flow li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.flow .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}
.flow h3 { font-size: 0.98rem; color: var(--navy); margin-bottom: 8px; }
.flow p { font-size: 0.84rem; color: var(--muted); text-align: left; }

/* ============ 自己紹介 ============ */
.about-inner { display: flex; gap: 44px; align-items: flex-start; }

.about-photo {
  flex: none;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #dfe6f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text { flex: 1; }
.about-name { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin: 10px 0 2px; }
.about-role { font-size: 0.85rem; color: var(--muted); font-weight: 500; margin-left: 12px; }
.about-loc { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.about-skills { margin-top: 14px; font-size: 0.92rem; }
.about-policy { margin: 16px 0; padding-left: 0; list-style: none; }
.about-policy li { padding-left: 26px; position: relative; font-size: 0.95rem; margin-bottom: 6px; }
.about-policy li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ============ お問い合わせ ============ */
.contact-inner { max-width: 640px; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form label { font-weight: 600; font-size: 0.92rem; color: var(--navy); display: flex; flex-direction: column; gap: 6px; }
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}
.contact-form .btn { align-self: center; margin-top: 6px; border: none; cursor: pointer; }

.contact-alt { text-align: center; margin-top: 22px; font-size: 0.88rem; color: var(--muted); }

/* ============ 実績詳細ページ ============ */
.detail-hero { background: var(--bg-alt); padding: 44px 0 36px; }
.back-link { display: inline-block; margin-bottom: 16px; font-size: 0.9rem; }
.detail-hero h1 { color: var(--navy); font-size: clamp(1.5rem, 3vw, 2rem); margin: 12px 0 14px; }
.detail-lead { max-width: 780px; }

.ba-band {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 24px;
  margin-top: 24px;
  font-weight: 600;
}
.ba-band .before { color: var(--muted); }
.ba-band .ba-arrow { color: #D7263D; font-weight: 700; font-size: 1.3rem; }
.ba-band .after { color: #D7263D; }

.detail-inner { max-width: 860px; margin: 0 auto; }
.detail-section { padding: 48px 0 8px; }
.detail-section h2 {
  font-size: 1.3rem;
  color: var(--navy);
  border-left: 6px solid var(--accent);
  padding-left: 14px;
  margin-bottom: 26px;
}

.shot { margin: 0 0 40px; }
.shot img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: 0.95rem; }

.check-list { list-style: none; }
.check-list li { padding: 8px 0 8px 30px; position: relative; }
.check-list li::before {
  content: "✓";
  position: absolute; left: 2px;
  color: var(--accent);
  font-weight: 700;
}

.cta-block {
  text-align: center;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 24px;
  margin: 44px 0 64px;
}
.cta-block p { margin-bottom: 20px; }

/* ============ フッター ============ */
.site-footer {
  background: var(--navy-dark);
  color: #b9c5d8;
  text-align: center;
  padding: 26px 0;
  font-size: 0.85rem;
}

/* ============ レスポンシブ ============ */
@media (max-width: 900px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .about-inner { flex-direction: column; align-items: center; text-align: center; }
  .section-title.left { text-align: center; }
  .section-title.left::after { left: 50%; transform: translateX(-50%); }
  .about-policy li { text-align: left; }
}

@media (max-width: 640px) {
  .sp-only { display: inline; }

  .nav {
    position: fixed;
    top: 64px; right: 0;
    flex-direction: column;
    background: #fff;
    width: 76%;
    max-width: 320px;
    height: calc(100vh - 64px);
    padding: 32px 28px;
    gap: 20px;
    align-items: flex-start;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s;
  }
  .nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }

  .hero { padding: 64px 0 72px; }
  .section { padding: 56px 0; }
  .flow { grid-template-columns: 1fr; }
  .btn { padding: 12px 26px; }
}
