/*
Theme Name: UBUGE WORKS Original Theme
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: UBUGE WORKS portfolio site converted into a custom WordPress theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: ubuge-works
*/

:root {
  --main: #a1ecff;
  --sub: #f7f7f7;
  --text: #1f2933;
  --muted: #67717a;
  --white: #ffffff;
  --line: rgba(31, 41, 51, 0.08);
  --shadow: 0 18px 48px rgba(34, 44, 54, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --transition: 0.35s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  line-height: 1.7;
}
body.menu-open { overflow: hidden; }
img, video { display: block; max-width: 100%; width: 100%; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(920px, 100%); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}
.logo {
  position: relative;
  z-index: 102;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: 0.08em;
  font-weight: 500;
}
.logo span { color: #73bdd1; }
.nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.nav a {
  font-size: 0.96rem;
  color: var(--muted);
  transition: color var(--transition);
}
.nav a:hover { color: var(--text); }

.menu-toggle {
  display: none;
  position: relative;
  z-index: 102;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(31, 41, 51, 0.08);
  box-shadow: 0 8px 20px rgba(31, 41, 51, 0.08);
}
.menu-toggle span {
  position: absolute;
  left: 13px;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition), top var(--transition);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-toggle span:nth-child(3) { top: 30px; }
.menu-toggle.is-open span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media img, .hero-media video {
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.hero-overlay {
  background:
    linear-gradient(135deg, rgba(6, 16, 26, 0.55), rgba(6, 16, 26, 0.28)),
    linear-gradient(180deg, rgba(161, 236, 255, 0.18), rgba(255, 255, 255, 0.06));
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}
.hero-subtitle {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.88rem;
  margin-bottom: 16px;
}
.hero-title {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: clamp(3.5rem, 12vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.hero-copy {
  width: min(680px, 100%);
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.88);
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.section { padding: 80px 0px 96px 0px; }
.section-soft { background: var(--sub); }
.section-head {
  margin-bottom: 32px;
  text-align: center;
}
.section-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: rgba(161, 236, 255, 0.25);
  box-shadow: 0 10px 24px rgba(109, 201, 224, 0.16);
}
.section-icon svg {
  width: 26px;
  height: 26px;
  fill: #35616d;
}
.contact-section .section-icon,
.footer-contact .section-icon {
  background: #ffffff;
}
.section-head h1,
.section-head h2 {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: 0.04em;
  text-align: center;
  font-weight: 500;
}

.profile-card,
.contact-box {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(161, 236, 255, 0.35);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}
.profile-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
  padding: 36px;
}
.profile-icon-wrap { display: flex; justify-content: center; }
.profile-icon {
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(50, 73, 87, 0.14);
}
.profile-name { margin: 0 0 10px; font-size: 1.8rem; }
.profile-text { margin: 0; color: var(--muted); }
.profile-softwares {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--sub);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(161, 236, 255, 0.45);
}
.profile-softwares h4 { margin: 0 0 8px; font-size: 1rem; }
.profile-softwares p { margin: 0; color: var(--muted); }
.sns-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sns-inline { margin-bottom: 18px; }
.sns-links a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(161, 236, 255, 0.45), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(161, 236, 255, 0.5);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.sns-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(86, 128, 146, 0.16);
}
.sns-links svg { width: 20px; height: 20px; fill: var(--text); }
.sns-label {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  letter-spacing: 0.02em;
}
.sns-label-skeb {
  font-size: 0.7rem;
  letter-spacing: 0;
}

.works-grid, .payment-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card, .payment-item, .flow-step {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(31, 41, 51, 0.09);
  border: 1px solid rgba(31, 41, 51, 0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}
.work-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.work-card-body { padding: 18px 18px 22px; }
.work-category {
  margin: 0 0 8px;
  color: #73bdd1;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.work-card h3 { margin: 0; font-size: 1.05rem; }
.hidden-work { display: none; }
.hidden-work.show { display: block; }
.center { text-align: center; margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  min-width: 180px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn::after {
  content: '＞';
  font-size: 0.6em;
  line-height: 1;
}
.btn-more::after {
  content: '＋';
  font-size: 0.9em;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--main), #d2f7ff);
  color: #12303a;
  box-shadow: 0 12px 26px rgba(109, 201, 224, 0.28);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.contact-section { background: var(--main); }
.footer-contact { background: var(--main); }
.contact-box { padding: 40px; text-align: center; }

.flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}
.flow-step {
  padding: 28px 28px 40px 28px;
  text-align: center;
  position: relative;
}
.flow-step span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(161, 236, 255, 0.35);
  font-weight: 700;
  color: #35616d;
}
.flow-step h3 {
  margin: 0 0 12px;
  font-size: 1.17rem;
  line-height: 1.6;
}
.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  text-align: left;
}

.flow-arrow {
  text-align: center;
  font-size: 0.9rem;
  color: #73bdd1;
  line-height: 1;
}

.payment-item { padding: 28px 28px 40px 28px; }
.payment-item h3 { margin: 0 0 10px; }
.payment-item p { margin: 0; color: var(--muted); }
.payment-item .note { margin-top: 10px; font-size: 0.92rem; }

.site-footer {
  padding: 0 0 42px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--muted);
padding: 30px;
}
.footer-wrap p { margin: 0; }

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 95;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--main), #d2f7ff);
  color: #12303a;
  box-shadow: 0 14px 30px rgba(109, 201, 224, 0.35);
  font-weight: 700;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.detail-page { background: linear-gradient(180deg, #ffffff, #f7fbfd); }
.detail-main { min-height: calc(100svh - 76px); }
.detail-heading { margin-bottom: 36px; }
.detail-gallery {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
}
.detail-media {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.detail-media.large { grid-row: span 2; }
.detail-media img {
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}
.play-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: white;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}
.detail-text {
  margin-top: 30px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(161, 236, 255, 0.4);
  box-shadow: var(--shadow);
}
.detail-subhead { margin-bottom: 20px; }
.detail-subhead .section-icon { margin-bottom: 6px; }
.detail-text h2 { margin-top: 0; margin-bottom: 18px; }
.detail-meta {
  margin: 0 0 20px;
  display: grid;
  gap: 12px;
}
.detail-meta div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(31, 41, 51, 0.08);
}
.detail-meta dt { font-weight: 700; }
.detail-meta dd { margin: 0; color: var(--muted); }
.detail-actions { margin-top: 28px; text-align: center; }
.detail-back-outside {
  margin-top: 24px;
  text-align: center;
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

@media (max-width: 960px) {
  .profile-card, .payment-list, .detail-gallery { grid-template-columns: 1fr; }
  .detail-media.large { grid-row: auto; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 48px 0; }
  .nav-wrap { min-height: 68px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px 16px 20px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(31, 41, 51, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    width: 100%;
    padding: 14px 10px;
    border-bottom: 1px solid rgba(31, 41, 51, 0.06);
    color: var(--text);
  }
  .hero-title { letter-spacing: 0.04em; }
  .section-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 6px;
  }
  .section-icon svg {
    width: 22px;
    height: 22px;
  }
  .section-head h1,
  .section-head h2 { font-size: clamp(1.7rem, 7vw, 2.25rem); }
  .profile-card,
  .contact-box,
  .detail-text,
  .payment-item { padding: 24px 24px 32px 24px; }
  .profile-card { gap: 20px; }
  .profile-icon { width: 130px; }
  .profile-name { text-align: center; }
  .sns-inline { justify-content: center; }
  .works-grid, .payment-list { grid-template-columns: 1fr; }
  .detail-container { width: min(100%, calc(100% - 32px)); }
  .detail-meta div { grid-template-columns: 1fr; gap: 4px; }
  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
  }
}