/* ==========================================================================
   NextVise — トップ（portfolio）
   ========================================================================== */

:root {
  --black: #111111;
  --white: #ffffff;
  --gray: #666666;
  --gray-light: #aaaaaa;
  --max: 1440px;
  --header-h: 72px;
  --accent: #52c285;
  --brand-grad: linear-gradient(135deg, #38bdf8 0%, #a78bfa 42%, #fb7185 100%);
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal {
  transform: none;
}

.hero .reveal.is-visible {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: top;
}

/* --- Header（共通） --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  transition: 0.3s;
}

/* --- トップページ --- */
body.page-home {
  margin: 0;
  color: var(--black);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: normal;
  line-height: 1.85;
  background: var(--white);
  overflow-x: hidden;
}

body.page-home::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(0, 0, 0, 0.04) calc(100% - 1px)) 0 0 / 33.33% 100%,
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(0, 0, 0, 0.04) calc(100% - 1px)) 0 0 / 100% 100%;
  opacity: 0.35;
}

body.page-home .site-header,
body.page-contact .site-header,
body.page-works .site-header {
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

body.page-home .main-nav a,
body.page-contact .main-nav a,
body.page-works .main-nav a {
  font-size: 0.9rem;
  font-weight: normal;
  letter-spacing: 0.18em;
  color: var(--black);
  transition: opacity 0.25s;
}

body.page-home .main-nav a:hover,
body.page-contact .main-nav a:hover,
body.page-works .main-nav a:hover {
  opacity: 0.5;
}

body.page-home .main-nav ul,
body.page-contact .main-nav ul,
body.page-works .main-nav ul {
  position: relative;
  padding-bottom: 14px;
}

.main-nav__indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--black);
  transform: translateX(-50%);
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  animation: nav-dot-pulse 2.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes nav-dot-pulse {

  0%,
  100% {
    scale: 1;
  }

  50% {
    scale: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-nav__indicator {
    animation: none;
    transition: left 0.15s ease;
  }
}

.site-logo {
  margin: 0;
  display: flex;
  align-items: center;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  font-weight: bold;
  letter-spacing: 0.02em;
}

.site-logo a:hover {
  opacity: 0.65;
}

.site-logo__img {
  height: 34px;
  width: auto;
  display: block;
}

.side-copyright {
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  margin: 0;
  font-size: 0.7rem;
  font-weight: normal;
  letter-spacing: 0.12em;
  white-space: nowrap;
  z-index: 900;
  pointer-events: none;
}

.landing {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
  overflow: hidden;
}

.scroll-indicator {
  position: fixed;
  left: 3%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  z-index: 50;
  pointer-events: none;
}

.scroll-indicator__text {
  display: block;
  font-size: 0.62rem;
  font-weight: normal;
  letter-spacing: 0.28em;
  writing-mode: vertical-rl;
}

.scroll-indicator__line {
  display: block;
  position: relative;
  width: 2px;
  height: 72px;
  margin: 14px auto 0;
  background: #d8d8d8;
  overflow: hidden;
}

.scroll-indicator__bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 28px;
  background: linear-gradient(180deg,
      transparent 0%,
      #252525 35%,
      #999 65%,
      transparent 100%);
  animation: scroll-line-flow 2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes scroll-line-flow {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  88% {
    opacity: 1;
  }

  100% {
    transform: translateY(calc(72px + 28px));
    opacity: 0;
  }
}

.hero {
  position: relative;
  min-height: 850px;
  max-width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 70px 0 0;
  box-sizing: border-box;
}

.hero-copy {
  position: absolute;
  left: 0%;
  top: 50%;
  transform: translate(0%, -50%);
  z-index: 5;
}

.hero-title {
  margin: 0 0 40px;
  font-size: 6rem;
  font-weight: bold;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--black);
}

.hero-lead {
  margin: 0 0 1.2em;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  color: var(--black);
}

.hero-body {
  max-width: 420px;
  margin: 0 0 clamp(36px, 5vh, 52px);
  font-size: 1rem;
  font-weight: normal;
  line-height: 2;
  color: #444;
}

.btn-view-works {
  display: inline-flex;
  align-items: center;
  gap: clamp(24px, 3.5vw, 36px);
  padding: 17px clamp(24px, 3.5vw, 32px) 17px clamp(26px, 3.5vw, 34px);
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.22em;
  line-height: 2;
  transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease;
}

.btn-view-works:hover {
  background-color: var(--white);
  color: var(--black);
  border-color: var(--black);
}

.btn-view-works__text {
  flex-shrink: 0;
}

/* 見本どおり：黒ボックス内の白い横線＋右向き矢印（>） */
.btn-view-works__arrow {
  display: block;
  position: relative;
  width: clamp(64px, 10vw, 96px);
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.btn-view-works__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.hero-visual {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  top: clamp(100px, 14vh, 160px);
  width: min(58vw, 680px);
  aspect-ratio: 1600 / 1200;
  z-index: 3;
  pointer-events: none;
}

.hero-visual__back1 {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translate(0%, -50%);
  width: 50%;
  z-index: 1;
  pointer-events: none;
}

.hero-visual__back2 {
  position: absolute;
  right: 0%;
  top: 43%;
  transform: translate(0%, -50%);
  width: 50%;
  z-index: 2;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

.hero-visual__back3 {
  position: absolute;
  right: -5%;
  top: 55%;
  transform: translate(0%, -50%);
  width: 65%;
  z-index: 3;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  right: 0%;
  top: 58%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
}

.hero-badge__x {
  font-size: 0.75em;
  font-weight: normal;
  line-height: 1;
  opacity: 0.9;
}

/* --- 共通セクション --- */
.section-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.section-label {
  margin: 0 0 20px;
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.28em;
  color: #111;
}

.section-label--center {
  text-align: center;
}

.section-label--light {
  color: rgba(255, 255, 255, 0.45);
}

/* --- 01 SERVICE --- */
.section-service {
  position: relative;
  padding: clamp(80px, 10vw, 120px) 0;
  overflow: hidden;
}

.section-service__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.section-service__blob--right {
  right: -8%;
  top: 10%;
  width: clamp(280px, 32vw, 420px);
  height: clamp(280px, 32vw, 420px);
  background: linear-gradient(135deg, #ff9a6c 0%, #ff6b9d 50%, #c084fc 100%);
  opacity: 0.55;
}

.section-service__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.section-service__copy {
  align-self: center;
}

.section-service__title {
  margin: 0 0 28px;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: bold;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.section-service__lead {
  max-width: 480px;
  margin: 0;
  font-size: 0.92rem;
  line-height: 2;
}

.section-service__cards {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e8e8e8;
}

.service-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
  padding: clamp(32px, 4vw, 44px) 0;
  border-bottom: 1px solid #e8e8e8;
}

.service-card__icon {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.service-card__icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #f3f3f3;
}

.service-card__icon-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 24px 18px;
  box-sizing: border-box;
}

.service-card__defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.service-card__label {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: normal;
  letter-spacing: 0.2em;
  color: #111;
}

.service-card__title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: bold;
  letter-spacing: 0.04em;
}

.service-card__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.95;
  color: #555;
}

/* --- 02 FEATURES --- */
.section-features {
  position: relative;
  padding: clamp(80px, 10vw, 120px) 0;
  overflow: hidden;
  background: #ebebeb;
}

.section-features__blob {
  position: absolute;
  right: -5%;
  top: 20%;
  width: clamp(300px, 35vw, 480px);
  height: clamp(300px, 35vw, 480px);
  border-radius: 50%;
  background: linear-gradient(160deg, #ff8a65 0%, #ff6b9d 60%, #f472b6 100%);
  filter: blur(90px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.section-features__head {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-features__title {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: bold;
  letter-spacing: 0.02em;
}

.section-features__sub {
  margin: 0 auto;
  max-width: 520px;
  font-size: 0.9rem;
  line-height: 1.9;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

.feature-card {
  position: relative;
  padding: clamp(28px, 3vw, 36px);
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.feature-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.feature-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card__num {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: bold;
  line-height: 1;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.feature-card__title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: bold;
}

.feature-card__text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.95;
}

/* --- 03 PROCESS --- */
.section-process {
  position: relative;
  padding: clamp(80px, 10vw, 120px) 0;
  overflow: hidden;
}

.section-process__blob {
  position: absolute;
  right: -10%;
  top: 15%;
  width: clamp(320px, 38vw, 520px);
  height: clamp(320px, 38vw, 520px);
  border-radius: 50%;
  background: linear-gradient(160deg, #a78bfa 0%, #818cf8 40%, #c084fc 100%);
  filter: blur(100px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.section-process__head {
  margin-bottom: clamp(40px, 5vw, 56px);
}

.section-process__title {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: bold;
}

.process-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 640px;
}

.process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 28px;
  position: relative;
}

.process-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: -8px;
  width: 1px;
  background: #ddd;
}

.process-step__marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    var(--brand-grad) border-box;
  box-sizing: border-box;
  flex-shrink: 0;
}

.process-step__marker span {
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: #888;
}

.process-step__body {
  padding: 8px 0 clamp(36px, 4vw, 48px);
}

.process-step__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: bold;
}

.process-step__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.9;
}

/* --- 04 WORKS --- */
.section-works {
  padding: clamp(80px, 10vw, 120px) 0;
  background: #ebebeb;
}

.section-works__head {
  margin-bottom: clamp(36px, 5vw, 52px);
}

.section-works__title {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: bold;
}

.works-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.works-showcase .works-item:nth-child(n + 4) {
  display: none;
}

.works-item__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 20px;
  background: #f0f0f0;
  border-radius: 2px;
}

.works-item__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.works-item:hover .works-item__thumb img {
  transform: scale(1.04);
}

.works-item>a {
  display: block;
  color: inherit;
}

.works-item__title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 0.02em;
}

.works-item__meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--gray-light);
  letter-spacing: 0.04em;
}

.section-works__cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(48px, 6vw, 72px);
}

.btn-view-all {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: normal;
  letter-spacing: 0.22em;
  color: var(--black);
  transition: opacity 0.25s;
}

.btn-view-all:hover {
  opacity: 0.55;
}

.btn-view-all__arrow {
  display: block;
  position: relative;
  width: clamp(120px, 20vw, 200px);
  height: 1px;
  background: var(--black);
}

.btn-view-all__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--black);
  border-right: 1px solid var(--black);
  transform: translateY(-50%) rotate(45deg);
}

/* --- 05 PRICE --- */
.section-pricing {
  position: relative;
  padding: clamp(80px, 10vw, 120px) 0;
  background: #1a1a1a;
  color: var(--white);
  overflow: hidden;
}

.section-pricing__blob {
  position: absolute;
  left: -5%;
  bottom: -15%;
  width: clamp(200px, 25vw, 320px);
  height: clamp(200px, 25vw, 320px);
  border-radius: 50%;
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.section-pricing__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.section-pricing__title {
  margin: 0 0 32px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: bold;
  line-height: 1.5;
}

.pricing-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pricing-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.pricing-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
}

.section-pricing__rates {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
}

.pricing-rate__label {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
}

.pricing-rate__amount {
  margin: 0;
  line-height: 1;
}

.pricing-rate__num {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: bold;
  letter-spacing: -0.02em;
}

.pricing-rate__unit {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: bold;
  margin-left: 4px;
}

.pricing-rate__tax {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- CTA --- */
.section-cta {
  position: relative;
  padding: clamp(100px, 12vw, 140px) 0;
  overflow: hidden;
}

.section-cta__blob {
  position: absolute;
  right: -5%;
  bottom: -10%;
  width: clamp(260px, 30vw, 400px);
  height: clamp(260px, 30vw, 400px);
  border-radius: 50%;
  background: linear-gradient(135deg, #c084fc 0%, #f472b6 50%, #fb923c 100%);
  filter: blur(90px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.section-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.section-cta__title {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: bold;
  line-height: 1.5;
}

.section-cta__lead {
  margin: 0;
  max-width: 480px;
  font-size: 0.9rem;
  line-height: 1.95;
  color: #555;
}

.section-cta .btn-cta {
  min-width: auto;
  flex-shrink: 0;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 40px);
  min-width: min(100%, 480px);
  padding: 20px clamp(32px, 5vw, 48px);
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease;
}

.btn-cta:hover {
  background-color: var(--white);
  color: var(--black);
  border-color: var(--black);
}

.btn-cta__arrow {
  display: block;
  position: relative;
  width: clamp(48px, 8vw, 72px);
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.btn-cta__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* --- Portfolio Footer --- */
.portfolio-footer {
  border-top: 1px solid #eee;
  background: var(--white);
  opacity: 1;
  visibility: visible;
}

.portfolio-footer .reveal {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.portfolio-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 40px) clamp(20px, 4vw, 56px);
}

.portfolio-footer__logo {
  margin: 0;
  flex-shrink: 0;
}

.portfolio-footer__logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.portfolio-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.portfolio-footer__nav a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--gray-light);
  transition: color 0.25s;
}

.portfolio-footer__nav a:hover {
  color: var(--black);
}

.portfolio-footer__copy {
  margin: 0;
  flex-shrink: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--gray-light);
  white-space: nowrap;
}

/* ==========================================================================
   Contact ページ（NextVise）
   ========================================================================== */

body.page-contact,
body.page-works {
  margin: 0;
  color: var(--black);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: normal;
  line-height: 1.85;
  background: var(--white);
  overflow-x: hidden;
}

body.page-contact main,
body.page-works main {
  padding-top: var(--header-h);
}

.contact-page {
  overflow: hidden;
}

/* --- Contact Hero --- */
.contact-hero {
  position: relative;
  padding: clamp(48px, 8vw, 80px) 0 clamp(56px, 8vw, 88px);
  overflow: hidden;
}

.contact-hero__blob {
  position: absolute;
  right: -6%;
  top: 0;
  width: clamp(280px, 36vw, 480px);
  height: clamp(280px, 36vw, 480px);
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8a65 0%, #f472b6 45%, #818cf8 100%);
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}

.contact-hero__inner {
  position: relative;
  z-index: 1;
}

.contact-hero__title {
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: bold;
  letter-spacing: 0.04em;
}

.contact-hero__lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 2;
  color: #555;
}

/* --- Contact Main --- */
.page-main {
  background: #f7f7f7;
  padding: clamp(56px, 8vw, 88px) 0;
}

.page-main__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-intro__title {
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: bold;
  line-height: 1.55;
}

.contact-intro__lead {
  margin: 0 0 clamp(36px, 5vw, 52px);
  font-size: 0.9rem;
  line-height: 2;
  color: #555;
}

.contact-features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-feature {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: clamp(24px, 3vw, 32px);
}

.contact-feature:last-child {
  margin-bottom: 0;
}

.contact-feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    var(--brand-grad) border-box;
  box-sizing: border-box;
  color: var(--black);
}

.contact-feature__icon svg {
  width: 22px;
  height: 22px;
}

.contact-feature__title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: bold;
}

.contact-feature__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.85;
  color: #666;
}

/* --- Contact Form Card --- */
.contact-form-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06);
  padding: clamp(10px, 1.5vw, 14px);
}

.contact-form-card__inner {
  background: var(--white);
  border-radius: 10px;
  padding: clamp(24px, 3.5vw, 36px);
}

.contact-form__row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-field {
  margin-bottom: 24px;
}

.contact-field label,
.contact-field legend {
  display: block;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: bold;
}

.contact-field--fieldset {
  border: none;
  margin: 0 0 24px;
  padding: 0;
}

.contact-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: bold;
  vertical-align: middle;
}

.contact-tag--required {
  background: #fff0f0;
  color: #e05555;
}

.contact-tag--optional {
  background: #f0f0f0;
  color: #888;
}

.contact-field input[type="text"],
.contact-field input[type="email"],
.contact-field input[type="tel"],
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--black);
  background: var(--white);
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: #aaa;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #bbb;
}

.contact-select-wrap {
  position: relative;
}

.contact-select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #888;
  border-bottom: 1.5px solid #888;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.contact-field select {
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
}

.contact-textarea-wrap {
  position: relative;
}

.contact-field textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.8;
}

.contact-char-count {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 0.72rem;
  color: #aaa;
  pointer-events: none;
}

.contact-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
}

.contact-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: normal;
  cursor: pointer;
}

.contact-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--black);
}

.contact-privacy {
  margin: 0 0 24px;
  font-size: 0.78rem;
  color: #888;
  text-align: center;
}

.contact-privacy a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-privacy__toggle {
  padding: 0;
  border: none;
  background: none;
  color: var(--black);
  font-family: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.contact-privacy__toggle:hover {
  opacity: 0.7;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.legal-modal[hidden] {
  display: none;
}

.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.legal-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.legal-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e8e8e8;
  background: #fafafa;
}

.legal-modal__header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: bold;
}

.legal-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: none;
  background: #eee;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  color: #343434;
}

.legal-modal__close:hover {
  background: #ddd;
}

.legal-modal__body {
  padding: 1.25rem 1.35rem 1.5rem;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.8;
  color: #444;
}

.legal-modal__body .privacy-policy__lead {
  margin-top: 0;
}

.privacy-policy__lead {
  margin: 0 0 20px;
  font-size: 0.82rem;
  line-height: 1.9;
  color: #555;
}

.privacy-policy__section {
  margin-bottom: 18px;
}

.privacy-policy__section h3 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: bold;
}

.privacy-policy__section p,
.privacy-policy__section li {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.85;
  color: #555;
}

.privacy-policy__section ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.privacy-policy__section a {
  color: var(--black);
  text-decoration: underline;
}

.privacy-policy__date {
  margin: 20px 0 0;
  font-size: 0.75rem;
  color: #888;
}

.contact-flash-wrap {
  margin-bottom: 24px;
}

.contact-flash-wrap--thanks {
  margin: 0 0 28px;
}

.contact-flash {
  margin: 0;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.7;
}

.contact-flash--error {
  background: #fff0f0;
  color: #c44;
}

.contact-flash--warning {
  background: #fff8e6;
  color: #8a6d00;
}

.btn-contact-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 40px);
  width: 100%;
  padding: 18px 32px;
  border: 1px solid var(--black);
  border-radius: 2px;
  background: var(--black);
  color: var(--white);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease;
}

.btn-contact-submit:hover {
  background-color: var(--white);
  color: var(--black);
  border-color: var(--black);
}

.btn-contact-submit__arrow {
  display: block;
  position: relative;
  width: clamp(48px, 10vw, 80px);
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.btn-contact-submit__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* --- Contact CTA --- */
.contact-cta {
  position: relative;
  padding: clamp(80px, 10vw, 120px) 0;
  overflow: hidden;
}

.contact-cta__blob {
  position: absolute;
  right: -8%;
  bottom: -20%;
  width: clamp(260px, 30vw, 400px);
  height: clamp(260px, 30vw, 400px);
  border-radius: 50%;
  background: linear-gradient(135deg, #c084fc 0%, #f472b6 50%, #fb923c 100%);
  filter: blur(90px);
  opacity: 0.4;
  pointer-events: none;
}

.contact-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.contact-cta__title {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: bold;
  line-height: 1.5;
}

.contact-cta__lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.95;
  color: #555;
}

.btn-contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 32px);
  padding: 18px clamp(28px, 4vw, 40px);
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease;
  flex-shrink: 0;
}

.btn-contact-cta:hover {
  background-color: var(--white);
  color: var(--black);
  border-color: var(--black);
}

.btn-contact-cta__arrow {
  display: block;
  position: relative;
  width: clamp(40px, 6vw, 64px);
  height: 1px;
  background: currentColor;
}

.btn-contact-cta__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* --- Thanks --- */
.thanks-section {
  padding: clamp(120px, 18vh, 180px) 0;
}

.thanks-section__inner {
  text-align: center;
}

.thanks-section__title {
  margin: 0 0 24px;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: bold;
}

.thanks-section__lead {
  margin: 0 auto 40px;
  max-width: 480px;
  font-size: 0.92rem;
  line-height: 2;
  color: #555;
}

/* ==========================================================================
   サブページ（歯科医院デモ / admin）
   ========================================================================== */

body:not(.page-home):not(.page-contact):not(.page-works):not(.page-admin) {
  margin: 0;
  padding: 0;
  color: rgb(26, 26, 26);
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  background-color: #fffefe;
  overflow-x: hidden;
}

body:not(.page-home):not(.page-contact):not(.page-works):not(.page-admin) .site-header {
  height: auto;
  padding: 10px 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body:not(.page-home):not(.page-contact):not(.page-works):not(.page-admin) .header-inner {
  max-width: 1400px;
}

body:not(.page-home):not(.page-contact):not(.page-works):not(.page-admin) .main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

body:not(.page-home):not(.page-contact):not(.page-works):not(.page-admin) .main-nav a {
  font-size: inherit;
  font-weight: bold;
  letter-spacing: normal;
  color: #575757;
  transition: color 0.3s;
}

body:not(.page-home):not(.page-contact):not(.page-works):not(.page-admin) .main-nav a:hover {
  color: var(--accent);
  opacity: 1;
}

body:not(.page-home):not(.page-contact):not(.page-works):not(.page-admin) .logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}

body:not(.page-home):not(.page-contact):not(.page-works):not(.page-admin) .logo img {
  height: 50px;
  width: auto;
  display: block;
}

body:not(.page-home):not(.page-contact):not(.page-works):not(.page-admin) .logo span {
  font-size: 2rem;
  font-weight: bold;
  color: #575757;
  white-space: nowrap;
}

body:not(.page-home):not(.page-contact):not(.page-works):not(.page-admin) main {
  padding-top: 70px;
}

.btn-access {
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
}

.btn-access:hover {
  background: #343434;
  color: #f8f3e1;
  transition: 0.3s;
}

.page-visual {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 0;
  text-align: center;
  margin-top: 0;
  color: #fff;
  position: relative;
}

.header_contact {
  background-image: url("../images/contact/header_contact.webp");
}

.page-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.page-visual h2 {
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: 5px;
}

.page-visual h2 span {
  display: block;
  font-size: 1rem;
  color: #fff;
  opacity: 0.9;
}

.admin-container h3 {
  font-weight: bold;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
}

.admin-container h3 span {
  font-size: 1rem;
  display: block;
  margin-top: -5px;
}

.reservation-info {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 40px;
  text-align: center;
  background-color: #fff;
  border-radius: 10px;
  line-height: 1.8;
  color: #333;
}

.info-label {
  display: block;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: #ccc;
  margin-bottom: 20px;
}

.info-main-text {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.highlight-red {
  color: #d9534f;
}

.underline {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.warning-text {
  font-size: 0.85rem;
  color: #d9534f;
  display: inline-block;
  margin-top: 10px;
}

.contact-form-section {
  max-width: 800px;
  margin: 80px auto;
  padding: 0 4%;
}

.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 50px;
  font-weight: bold;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
}

.form-group label span {
  background: #ff6b6b;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 10px;
  vertical-align: middle;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1.2rem;
  box-sizing: border-box;
}

.radio-group {
  display: flex;
  gap: 80px;
  margin-top: 10px;
}

::placeholder {
  color: #999;
}

.radio-group label {
  font-weight: normal;
  cursor: pointer;
}

.radio-group input {
  width: auto;
  margin-right: 5px;
}

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  padding: 15px;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-submit:hover {
  background: #343434;
  color: #f8f3e1;
}

.green {
  background: #666;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  gap: 40px;
  max-width: 1200px;
  margin: 80px auto;
  width: 94%;
}

.green a {
  font-weight: bold;
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
}

.green a:hover {
  background: #343434;
  color: #f8f3e1;
  transition: 0.3s;
}

.green img.left {
  width: 20%;
}

.green .right {
  width: 50%;
}

.green .right p {
  margin-bottom: 20px;
}

.site-footer {
  background-color: #fff;
  padding: 60px 4% 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-info {
  flex: 1;
}

.footer-tel {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 10px;
}

.footer-address {
  color: #666;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  font-weight: bold;
}

.footer-nav a {
  color: #333;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--accent);
}

.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: #999;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.loader {
  position: fixed;
  inset: 0;
  background-color: #fff;
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  will-change: opacity;
}

.loader-content {
  text-align: center;
  animation: logo-fade 1.5s ease-in-out infinite alternate;
}

.loader-content img {
  width: 150px;
  height: auto;
  margin-bottom: 10px;
}

.loader-content p {
  font-size: 3rem;
  font-weight: bold;
  color: #333;
}

@keyframes logo-fade {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.loader.is-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader.is-hide .loader-content {
  animation: none;
  opacity: 1;
  transform: none;
}

.loader--portfolio {
  display: flex;
}

body.page-home.is-loading {
  overflow: hidden;
}

body.page-home.is-loading .site-header,
body.page-home.is-loading .side-copyright,
body.page-home.is-loading main,
body.page-home.is-loading .page-top,
body.page-home.is-loading .portfolio-footer {
  opacity: 0;
  visibility: hidden;
}

body.page-home .site-header,
body.page-home .side-copyright,
body.page-home main,
body.page-home .page-top,
body.page-home .portfolio-footer {
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader--portfolio .loader-content {
  animation: loader-portfolio-fade 1.6s ease-in-out infinite alternate;
}

.loader--portfolio .loader-content__logo {
  width: auto;
  height: clamp(40px, 8vw, 52px);
  margin: 0 auto 20px;
  display: block;
}

.loader--portfolio .loader-content__catch {
  margin: 0;
  padding: 0 24px;
  max-width: 360px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  font-weight: bold;
  line-height: 1.85;
  letter-spacing: 0.06em;
  color: var(--black);
}

@keyframes loader-portfolio-fade {
  0% {
    transform: translateY(4px);
    opacity: 0.75;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.page-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  width: 52px;
  height: 52px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #343434;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
}

.page-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-top:hover {
  background-color: var(--accent);
  color: #f8f3e1;
}

body.page-home .page-top {
  background: var(--black);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body.page-home .page-top:hover {
  background: #333;
  color: var(--white);
}

.page-top__arrow {
  display: block;
  flex-shrink: 0;
}

.admin-container {
  max-width: 1200px;
  margin: 40px auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  width: 94%;
}

.admin-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 20px;
}

.admin-container table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.admin-container th,
.admin-container td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.admin-container th {
  background-color: #00a86b;
  color: white;
}

.admin-container tr:nth-child(even) {
  background-color: #f9f9f9;
}

.admin-container tr:hover {
  background-color: #f1f1f1;
}

.admin-container .date-cell {
  white-space: nowrap;
  font-size: 0.9em;
  color: #666;
}



/* ==========================================================================
   Works ページ
   ========================================================================== */


.works-hero {
  position: relative;
  padding: clamp(48px, 8vw, 80px) 0 clamp(56px, 8vw, 88px);
  overflow: hidden;
}

.works-hero__blob {
  position: absolute;
  right: -6%;
  top: 0;
  width: clamp(280px, 36vw, 480px);
  height: clamp(280px, 36vw, 480px);
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8a65 0%, #f472b6 45%, #818cf8 100%);
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}

.works-hero__inner {
  position: relative;
  z-index: 1;
}

.works-hero__title {
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: bold;
  letter-spacing: 0.04em;
}

.works-hero__lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 2;
  color: #555;
}

.works-list-section {
  padding: clamp(48px, 6vw, 72px) 0 clamp(80px, 10vw, 120px);
  background: #f5f5f5;
}

.works-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(36px, 5vw, 52px);
}

.works-filter__btn {
  padding: 10px 22px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: var(--white);
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--black);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.works-filter__btn:hover {
  border-color: #bbb;
}

.works-filter__btn.is-active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 40px);
}

.works-card.is-filter-hidden {
  display: none !important;
}

.works-card__link {
  display: block;
  color: inherit;
}

.works-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 18px;
  background: #a5a5a5;
  border-radius: 12px;
}

.works-card__thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
  transition: transform 0.5s ease;
}

.works-card:hover .works-card__thumb img {
  transform: scale(1.03);
}

.works-card__tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f0f0f0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.works-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.works-card__tags .works-card__tag {
  margin-bottom: 0;
}

.works-card__tag--site {
  background: #e3f2fd;
  color: #1565c0;
}

.works-card__tag--app {
  background: #e8f5e9;
  color: #2e7d32;
}

.works-card__title {
  margin: 0 0 8px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: bold;
}

.works-card__meta {
  margin: 0 0 16px;
  font-size: 0.78rem;
  color: var(--gray-light);
  letter-spacing: 0.04em;
}

.works-card__detail {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.works-card__detail span {
  margin-left: 4px;
}

.works-empty {
  margin: 0;
  padding: 48px 0;
  text-align: center;
  color: #888;
  font-size: 0.92rem;
}

.work-detail-hero {
  position: relative;
  padding: clamp(80px, 10vw, 120px) 0 clamp(40px, 5vw, 56px);
  overflow: hidden;
}

.work-detail-hero__inner {
  position: relative;
  z-index: 1;
}

.work-detail-hero__title {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: bold;
  letter-spacing: 0.04em;
}

.work-detail-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-main__figure {
  margin: 0 0 clamp(28px, 4vw, 40px);
  overflow: hidden;
  border-radius: 12px;
  background: #a5a5a5;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.page-main__inner.work_detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  max-width: 800px;
}

.page-main__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-main__comment {
  margin: 0 0 clamp(28px, 4vw, 40px);
  padding: clamp(20px, 3vw, 28px) clamp(24px, 3.5vw, 32px);
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: var(--white);
}

.page-main__comment-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 2;
  color: #444;
  white-space: pre-wrap;
}

.page-main__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}

.page-main__visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease;
}

.page-main__visit:hover {
  background-color: var(--white);
  color: var(--black);
  border-color: var(--black);
}

.page-main__visit-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.page-main__back {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: #666;
  transition: color 0.25s;
}

.page-main__back:hover {
  color: var(--black);
}

/* ==========================================================================
     管理画面（Works CMS）
     ========================================================================== */

body.page-admin {
  margin: 0;
  color: var(--black);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.85;
  background: #f7f7f7;
}

.admin-header {
  border-bottom: 1px solid #eee;
  background: var(--white);
}

.admin-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px clamp(20px, 4vw, 56px);
}

.admin-header__logo {
  margin: 0;
}

.admin-header__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.admin-header__link {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--black);
  transition: opacity 0.25s;
}

.admin-header__link:hover {
  opacity: 0.55;
}

.admin-header__logout {
  margin: 0;
}

.admin-header__link--btn {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.admin-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 56px) 80px;
}

.admin-flash-wrap {
  margin-bottom: 24px;
}

.admin-flash {
  margin: 0 0 8px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.88rem;
}

.admin-flash--success {
  background: #eefaf3;
  color: #2d7a4f;
}

.admin-flash--error {
  background: #fff0f0;
  color: #c44;
}

.admin-auth {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 64px);
}

.admin-auth__card {
  width: min(100%, 440px);
  padding: clamp(32px, 5vw, 48px);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06);
}

.admin-auth__title {
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: bold;
}

.admin-auth__lead {
  margin: 0 0 28px;
  font-size: 0.88rem;
  line-height: 1.9;
  color: #555;
}

.admin-auth__back {
  margin: 20px 0 0;
  font-size: 0.82rem;
  text-align: center;
}

.admin-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.admin-section__title {
  margin: 8px 0 0;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: bold;
}

.admin-form-card {
  padding: clamp(24px, 4vw, 36px);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.admin-form--wide {
  max-width: 640px;
}

.admin-field {
  margin-bottom: 24px;
}

.admin-field label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: bold;
}

.admin-field input[type="text"],
.admin-field input[type="email"],
.admin-field input[type="password"],
.admin-field input[type="url"],
.admin-field input[type="file"],
.admin-field select,
.admin-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  outline: none;
  border-color: #aaa;
}

.admin-field textarea {
  resize: vertical;
  min-height: 140px;
}

.admin-field .contact-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-color: var(--white);
  color: var(--black);
}

.admin-form__preview {
  margin: 0 0 12px;
}

.admin-form__preview img {
  display: block;
  max-width: 280px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.admin-form__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.admin-form__cancel {
  font-size: 0.82rem;
  color: #666;
}

.btn-admin-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: opacity 0.25s;
}

.btn-admin-submit:hover {
  opacity: 0.75;
}

.btn-admin-submit--inline {
  text-decoration: none;
}

.admin-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  background: #fafafa;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.admin-table__thumb {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}

.admin-table__url {
  max-width: 220px;
  word-break: break-all;
  font-size: 0.78rem;
}

.admin-table__date {
  white-space: nowrap;
  font-size: 0.78rem;
  color: #888;
}

.admin-table__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.admin-table__actions form {
  margin: 0;
  display: inline-flex;
}

.admin-table__edit {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.admin-table__delete {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.78rem;
  color: #c44;
  cursor: pointer;
}

.admin-empty {
  margin: 0;
  padding: 48px 0;
  text-align: center;
  color: #888;
}

.admin-auth__card--wide {
  width: min(100%, 520px);
}

.admin-auth__lead--warning {
  color: #a44;
}

.admin-totp-setup {
  margin-bottom: 28px;
  text-align: center;
}

.admin-totp-setup__issuer {
  margin: 0 0 16px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: #888;
}

.admin-totp-setup__qr {
  display: block;
  margin: 0 auto 16px;
  border-radius: 8px;
}

.admin-totp-setup__secret {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.8;
  word-break: break-all;
}

.admin-backup-codes {
  list-style: none;
  margin: 0 0 28px;
  padding: 20px;
  border-radius: 8px;
  background: #f7f7f7;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-backup-codes code {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}


/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 1400px) {
  .hero {
    margin: 0 6%;
  }

  .side-copyright {
    right: -1%;
  }

  .scroll-indicator {
    left: 2%;
  }
}

@media (max-width: 1200px) {
  .hero-title {
    font-size: 5rem;
  }

  .hero {
    min-height: 650px;
    margin: 0 10%;
  }

  .section-service__inner,
  .section-inner {
    margin: 0 6%;
  }


}



@media (max-width: 1100px) {
  html {
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding-bottom: clamp(380px, 52vw, 480px);
  }

  .hero-copy {
    width: 45%;
  }

  .hero-badge {
    right: 0%;
    top: auto;
    bottom: 18%;
    width: clamp(84px, 18vw, 112px);
    height: clamp(84px, 18vw, 112px);
    font-size: 0.9rem;
  }

  .section-service__lead {
    max-width: none;

  }

  .section-service__inner {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .section-pricing__inner {
    grid-template-columns: 1fr;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 950px) {
  .hero-title {
    font-size: 4rem;
  }

  .page-visual {
    padding: 70px 0;
  }

  .green {
    display: grid;
  }

  .green img.left {
    width: 100%;
  }

  .green .right {
    width: 100%;
  }

  div.green .link {
    text-align: center;
  }

  body:not(.page-home) .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  body:not(.page-home) .footer-info {
    text-align: left;
  }

  .works-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .works-showcase .works-item:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 768px) {
  .menu-btn {
    display: flex;
    z-index: 2001;
  }

  body.page-home .menu-btn span,
  body.page-contact .menu-btn span,
  body.page-works .menu-btn span,
  body:not(.page-home):not(.page-contact):not(.page-works):not(.page-admin) .menu-btn span {
    background: var(--black);
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(80%, 300px);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    padding: 80px 32px;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
    transition: right 0.3s;
    z-index: 2000;
  }

  .main-nav.is-active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding-bottom: 0;
  }

  .main-nav__indicator {
    display: none;
  }

  .menu-btn.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-btn.is-active span:nth-child(2) {
    opacity: 0;
  }

  .menu-btn.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .side-copyright,
  .scroll-indicator {
    display: none;
  }

  .hero {
    min-height: auto;
    margin: 0 4%;
    padding-bottom: 240px;
  }

  .hero-copy,
  .hero-visual__back1,
  .hero-visual__back3,
  .hero-badge {
    display: none;
  }

  .hero {
    background-image: url('/static/images/sp_hero.png');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
  }


  .hero-body {
    max-width: none;
  }

  .section-service__inner,
  .section-inner {
    margin: 0 4%;
    padding: 0;
  }

  .portfolio-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .portfolio-footer__nav ul {
    gap: 20px;
  }

  .page-main__inner {
    grid-template-columns: 1fr;
  }

  .contact-form__row--2col {
    grid-template-columns: 1fr;
  }

  .contact-cta__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section-cta__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section-cta__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .btn-contact-cta {
    justify-self: center;
  }

  .section-cta .btn-cta {
    justify-self: center;
  }
}