:root {
  --bg: #05070d;
  --panel: #0b101a;
  --panel-2: #101827;
  --text: #f7fbff;
  --muted: #9aa8bd;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #2f8cff;
  --accent-2: #67d7ff;
  --purple: #8d5cff;
  --shadow: 0 28px 90px rgba(47, 140, 255, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Inter", sans-serif;
  letter-spacing: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

body.page-loaded {
  opacity: 1;
}

body.page-leaving {
  opacity: 0;
}

/* 基本のリンク設定。色や下線は各ボタン側で調整します。 */
a {
  color: inherit;
  text-decoration: none;
}

/* 画面上部に固定されるヘッダーです。 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(5, 7, 13, 0.66);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: min-height 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.site-header.scrolled {
  min-height: 64px;
  background: rgba(5, 7, 13, 0.88);
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(47, 140, 255, 0.35);
}

.site-nav {
  display: flex;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(47, 140, 255, 0.14);
  transform: translateY(-1px);
}

.site-nav a.active {
  color: var(--text);
  background: rgba(47, 140, 255, 0.18);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
  min-height: 100vh;
  padding: 130px clamp(18px, 5vw, 72px) 80px;
  overflow: hidden;
}

.page-hero {
  position: relative;
  min-height: 74vh;
  display: grid;
  align-items: center;
  padding: 130px clamp(18px, 5vw, 72px) 78px;
  overflow: hidden;
}

.page-copy {
  max-width: 940px;
}

.page-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 18%, rgba(47, 140, 255, 0.3), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(141, 92, 255, 0.2), transparent 26%),
    linear-gradient(145deg, #05070d 0%, #07101e 46%, #03050a 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
}

.hero-content {
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 8vw, 7.6rem);
  font-weight: 900;
  line-height: 0.98;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.hero-copy,
.section-heading p,
.consult-box p,
.service-card p,
.price-card span {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

.hero-copy {
  max-width: 680px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.button.primary {
  border-color: transparent;
  color: #02101d;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
}

.button.secondary:hover {
  border-color: rgba(103, 215, 255, 0.6);
}

.mini-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--accent-2);
  font-weight: 900;
}

.mini-link::after {
  content: "->";
  transition: transform 0.2s ease;
}

.mini-link:hover::after {
  transform: translateX(5px);
}

.hero-card {
  position: relative;
  min-height: 360px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -24% -32% -24%;
  height: 210px;
  background: radial-gradient(circle, rgba(47, 140, 255, 0.55), transparent 68%);
}

.status-dot {
  width: 12px;
  height: 12px;
  margin-bottom: 72px;
  border-radius: 50%;
  background: #5cffb7;
  box-shadow: 0 0 24px rgba(92, 255, 183, 0.8);
}

.hero-card p {
  color: var(--accent-2);
  font-weight: 900;
}

.hero-card strong {
  display: block;
  margin-bottom: 10px;
  font-family: "Inter", sans-serif;
  font-size: clamp(4.2rem, 9vw, 6.8rem);
  font-weight: 900;
  line-height: 0.9;
}

.hero-card span {
  color: var(--muted);
}

.section {
  padding: clamp(74px, 10vw, 130px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.service-grid,
.pricing-grid,
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.price-card,
.example-card,
.consult-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
}

.service-card,
.price-card,
.example-card {
  min-height: 260px;
  padding: 28px;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.service-card:hover,
.price-card:hover,
.example-card:hover {
  transform: translateY(-6px);
  border-color: rgba(103, 215, 255, 0.48);
  background: linear-gradient(180deg, rgba(47, 140, 255, 0.13), rgba(255, 255, 255, 0.04));
}

.service-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 58px;
  border-radius: 8px;
  color: #02101d;
  background: var(--accent-2);
  font-family: "Inter", sans-serif;
  font-weight: 900;
}

.examples-section {
  background:
    radial-gradient(circle at 12% 8%, rgba(141, 92, 255, 0.12), transparent 30%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.03));
}

.example-card {
  overflow: hidden;
}

.example-visual {
  position: relative;
  height: 150px;
  margin: -6px -6px 24px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--purple));
}

.example-visual::before,
.example-visual::after {
  content: "";
  position: absolute;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.example-visual::before {
  left: 20px;
  top: 24px;
  width: 38%;
  height: 12px;
  box-shadow: 0 26px 0 rgba(255, 255, 255, 0.5), 0 52px 0 rgba(255, 255, 255, 0.3);
}

.example-visual::after {
  right: 20px;
  bottom: 20px;
  width: 34%;
  height: 54px;
  background: rgba(5, 7, 13, 0.72);
}

.visual-shop {
  background: linear-gradient(135deg, #111827, #2f8cff 48%, #67d7ff);
}

.visual-personal {
  background: linear-gradient(135deg, #8d5cff, #2f8cff 54%, #060914);
}

.example-card > p {
  color: var(--muted);
  line-height: 1.85;
}

.detail-toggle {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  border: 1px solid rgba(103, 215, 255, 0.42);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.detail-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--accent-2);
  background: rgba(47, 140, 255, 0.16);
}

.detail-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition: grid-template-rows 0.32s ease, opacity 0.32s ease, margin-top 0.32s ease;
}

.detail-panel p {
  overflow: hidden;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.85;
}

.example-card.open .detail-panel {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 16px;
}

.example-card.open .detail-toggle {
  color: #02101d;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.accordion-list {
  display: grid;
  gap: 16px;
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  overflow: hidden;
}

.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 78px;
  padding: 20px 24px;
  border: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.accordion-toggle strong {
  flex: 1;
}

.accordion-toggle em {
  flex: 0 0 auto;
  color: var(--accent-2);
  font-style: normal;
  font-size: 0.9rem;
}

.accordion-toggle span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #02101d;
  background: var(--accent-2);
  font-family: "Inter", sans-serif;
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  padding: 0 24px;
  transition: grid-template-rows 0.34s ease, opacity 0.34s ease, padding 0.34s ease;
}

.accordion-panel p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  line-height: 1.95;
}

.accordion-item.open .accordion-panel {
  grid-template-rows: 1fr;
  opacity: 1;
  padding: 0 24px 24px;
}

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

.work-item {
  min-height: 390px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.work-item:hover {
  transform: translateY(-6px);
  border-color: rgba(103, 215, 255, 0.48);
}

.work-item p {
  color: var(--muted);
  line-height: 1.85;
}

.slide-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(460px, 92vw);
  height: 100vh;
  padding: 90px 28px 28px;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle at 10% 0%, rgba(47, 140, 255, 0.22), transparent 35%),
    #080d16;
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.42);
  transform: translateX(105%);
  transition: transform 0.34s ease;
}

.slide-panel.open {
  transform: translateX(0);
}

.slide-panel p {
  color: var(--muted);
  line-height: 1.9;
}

.panel-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.5rem;
  cursor: pointer;
}

.panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s ease;
}

.panel-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.pricing-section {
  background: linear-gradient(180deg, rgba(47, 140, 255, 0.08), transparent);
}

.price-card p {
  margin-bottom: 20px;
  color: var(--accent-2);
  font-weight: 900;
}

.price-card h3 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.price-card.featured {
  border-color: rgba(103, 215, 255, 0.72);
  background:
    radial-gradient(circle at 80% 0%, rgba(103, 215, 255, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(47, 140, 255, 0.2), rgba(255, 255, 255, 0.04));
}

.consult-section {
  padding: clamp(74px, 10vw, 130px) clamp(18px, 5vw, 72px);
}

.contact-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(28px, 6vw, 84px);
  min-height: 100vh;
  padding: 130px clamp(18px, 5vw, 72px) 80px;
  overflow: hidden;
}

.contact-card,
.contact-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.contact-card {
  padding: clamp(28px, 5vw, 58px);
}

.contact-card p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.9;
}

.instagram-button {
  margin-top: 18px;
}

.contact-note {
  padding: 28px;
}

.contact-note span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent-2);
  font-weight: 900;
}

.contact-note ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 2;
}

.consult-box {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(30px, 6vw, 70px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(47, 140, 255, 0.28), transparent 36%),
    var(--panel-2);
}

.consult-box p {
  max-width: 680px;
  margin-inline: auto;
}

.consult-box strong {
  color: var(--text);
}

.consult-box .button {
  margin-top: 20px;
}

.site-footer {
  padding: 30px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.slide-left {
  transform: translateX(-52px);
}

.reveal.slide-right {
  transform: translateX(52px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.visible:nth-child(2) {
  transition-delay: 0.08s;
}

.reveal.visible:nth-child(3) {
  transition-delay: 0.16s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(11, 16, 26, 0.96);
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .service-grid,
  .pricing-grid,
  .examples-grid,
  .work-list,
  .contact-page {
    grid-template-columns: 1fr;
  }

  .contact-page {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 0.86rem;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.2rem);
  }

  .hero {
    padding-top: 112px;
  }

  .hero-card {
    min-height: 300px;
  }
}
