:root{
  --bg: #f7f8fb;
  --surface: rgba(255,255,255,0.75);
  --stroke: rgba(0,0,0,0.06);
  --text: #0b1220;
  --muted:#4b5563;
  --primary:#007aff;
  --primary-2:#26d0ff;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 24px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:linear-gradient(180deg,#ffffff, var(--bg));color:var(--text);font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text","SF Pro Display", Inter, system-ui, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI";}
img{max-width:100%;display:block}
a{color:var(--primary);text-decoration:none;transition:all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)}
a:hover{text-decoration:none;transform:translateY(-1px)}
.container{width:min(1080px,92%);margin:0 auto}

.frosted{background:var(--surface);backdrop-filter:saturate(1.5) blur(16px);-webkit-backdrop-filter:saturate(1.5) blur(16px);border:1px solid var(--stroke);box-shadow: var(--shadow);border-radius: var(--radius);}

.app-nav{position:sticky;top:0;z-index:50;margin:12px auto 0; padding:10px 0;}
.nav-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:18px;color:var(--text);text-decoration:none;transition:all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)}
.brand:hover{transform:scale(1.05);text-decoration:none}
.brand-name{letter-spacing:.3px}
.brand-logo{width:32px;height:32px;object-fit:contain}


/* Language Selector */
.language-selector{position:relative;display:block} /* Always visible */
.lang-toggle{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,0.9);border:1px solid var(--stroke);border-radius:12px;padding:8px 12px;cursor:pointer;transition:all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);font-weight:600;color:var(--text)}
.lang-toggle:hover{background:rgba(255,255,255,1);transform:translateY(-1px);box-shadow:0 4px 12px rgba(0,0,0,0.1)}
.lang-toggle[aria-expanded="true"]{background:rgba(255,255,255,1);box-shadow:0 4px 12px rgba(0,0,0,0.1)}
.lang-toggle[aria-expanded="true"] .lang-arrow{transform:rotate(180deg)}

.current-lang{display:flex;align-items:center;gap:6px;font-size:14px}
.lang-arrow{font-size:10px;transition:transform 0.3s ease;color:#6b7280}

.lang-dropdown{position:absolute;top:100%;right:0;background:rgba(255,255,255,0.95);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid var(--stroke);border-radius:16px;box-shadow:0 20px 40px rgba(0,0,0,0.15);padding:8px;min-width:180px;opacity:0;visibility:hidden;transform:translateY(-10px);transition:all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);z-index:100}
.lang-dropdown.open{opacity:1;visibility:visible;transform:translateY(0)}

.lang-option{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;text-decoration:none;color:var(--text);transition:all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);margin:2px 0}
.lang-option:hover{background:rgba(0,122,255,0.1);color:#007aff;transform:translateX(4px);text-decoration:none}
.lang-option.active{background:rgba(0,122,255,0.15);color:#007aff}

.lang-flag{font-size:18px;width:24px;text-align:center}
.lang-name{font-size:14px;font-weight:500}



.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:center;margin:28px auto}
.hero-copy h1{font-size:42px;line-height:1.1;margin:0 0 10px}
.highlight{background:linear-gradient(90deg,var(--primary),var(--primary-2));-webkit-background-clip:text;background-clip:text;color:transparent}
.sub{color:var(--muted);margin:0 0 16px;font-size:18px}
.actions{display:flex;flex-wrap:wrap;gap:10px;margin:6px 0 14px}
.btn{display:inline-block;padding:12px 16px;border-radius:14px;border:1px solid var(--stroke);font-weight:800;transition:all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);text-decoration:none;position:relative;overflow:hidden}
.btn:hover{transform:translateY(-2px) scale(1.02);text-decoration:none}
.btn.primary{background:linear-gradient(135deg,var(--primary),#4aa3ff);color:#fff;border:none;box-shadow:0 4px 15px rgba(0,122,255,0.3)}
.btn.primary:hover{background:linear-gradient(135deg,#0056b3,#3a8bff);box-shadow:0 8px 25px rgba(0,122,255,0.4);transform:translateY(-3px) scale(1.03)}
.btn.ghost{background:rgba(0,0,0,.04);color:#0b1220}
.btn.ghost:hover{background:rgba(0,0,0,.08);transform:translateY(-2px) scale(1.02);box-shadow:0 4px 15px rgba(0,0,0,0.1)}
.btn.tiny{padding:8px 10px;border-radius:12px;font-size:14px;margin-top:8px}
.btn.disabled{opacity:.6;pointer-events:none}
.badges{display:flex;gap:12px;list-style:none;padding:0;margin:10px 0 0}
.badges li{font-weight:700;color:#1f2937;background:rgba(0,0,0,.04);padding:8px 10px;border-radius:12px;border:1px solid var(--stroke);transition:all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)}
.badges li:hover{transform:translateY(-2px) scale(1.05);background:rgba(0,122,255,0.1);border-color:#007aff;color:#007aff}

.hero-art{position:relative}
.glass-card{background:var(--surface);border:1px solid var(--stroke);border-radius:24px;box-shadow: var(--shadow);padding:16px;transition:all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)}
.glass-card:hover{transform:translateY(-4px) scale(1.01);box-shadow:0 20px 40px rgba(0,0,0,0.1)}
.card-header{display:flex;gap:10px;align-items:center}
.app-icon{width:42px;height:42px;border-radius:10px}
.zangyo-mockup{margin:10px 0 6px;background:#1a1a1a;border-radius:20px;padding:0;border:1px solid #333;overflow:hidden;box-shadow:0 8px 32px rgba(0,0,0,0.3)}
.mockup-nav{display:flex;align-items:center;padding:12px 16px;background:#2a2a2a;border-bottom:1px solid #333}
.nav-back{color:#fff;font-size:18px;font-weight:600;margin-right:12px}
.nav-title{color:#fff;font-size:16px;font-weight:700;flex:1;text-align:center}
.mockup-content{padding:16px;background:#1a1a1a}
.content-title{color:#fff;font-size:14px;font-weight:600;margin-bottom:12px}
.record-card{background:#2a2a2a;border-radius:16px;padding:16px;border:1px solid #333;box-shadow:0 4px 16px rgba(0,0,0,0.2)}
.card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.date-section{display:flex;align-items:center;gap:8px}
.calendar-icon{font-size:16px}
.date-text{color:#fff;font-size:14px;font-weight:600}
.action-section{display:flex;align-items:center;gap:8px}
.work-icon{background:#4ade80;color:#fff;width:24px;height:24px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:12px}
.expand-icon{color:#fff;font-size:16px;font-weight:600}
.work-badge{background:#4ade80;color:#fff;padding:6px 12px;border-radius:20px;font-size:12px;font-weight:700;display:inline-block;margin-bottom:12px}
.time-breakdown{display:grid;gap:8px;margin-bottom:12px}
.time-item{display:flex;align-items:center;gap:8px}
.time-item.normal .time-text{color:#fff;font-size:13px;font-weight:500}
.time-item.overtime .time-text{color:#fb923c;font-size:13px;font-weight:500}
.time-icon{font-size:14px}
.total-amount{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;padding-top:12px;border-top:1px solid #333}
.total-label{color:#fff;font-size:14px;font-weight:600}
.total-value{color:#60a5fa;font-size:16px;font-weight:700}
.action-buttons{display:flex;gap:8px}
.btn-edit{background:#60a5fa;color:#fff;border:none;padding:8px 12px;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer;flex:1}
.btn-delete{background:#ef4444;color:#fff;border:none;padding:8px 12px;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer;flex:1}
.tilt{transform:rotate(-2.2deg) translate3d(0,0,0)}

.light-orb{position:absolute;border-radius:50%;filter:blur(24px);opacity:.7}
.light-orb.a{right:-20px;top:-10px;width:240px;height:240px;background:radial-gradient(circle,var(--primary-2),transparent 70%)}
.light-orb.b{right:140px;bottom:-40px;width:180px;height:180px;background:radial-gradient(circle,var(--primary),transparent 70%)}

.featured{padding:22px;margin:34px auto}
.featured .grid{display:grid;grid-template-columns:1.1fr .9fr;gap:20px;align-items:center}
.check{list-style:none;padding:0;margin:10px 0 18px}
.check li{position:relative;padding-left:26px;margin:8px 0}
.check li::before{content:"";position:absolute;left:0;top:8px;width:14px;height:14px;border-radius:50%;background:linear-gradient(135deg,var(--primary),#4aa3ff)}

.device{display:flex;justify-content:center}
.iphone{width:300px;aspect-ratio:9/19.5;border:1px solid #dfe3ec;background:#fff;border-radius:46px;box-shadow: 0 20px 60px rgba(0,0,0,.12) inset, 0 6px 26px rgba(0,0,0,.08)}
.notch{height:28px;background:#0b1220;border-bottom-left-radius:18px;border-bottom-right-radius:18px;margin:10px 22%}
.screen-mock{margin:10px;border-radius:32px;border:1px solid #eef2f7;height:80%;background:#f7f9fc;overflow:hidden;position:relative}
.app-screenshot{width:100%;height:100%;object-fit:cover;object-position:top;border-radius:32px;display:block}

#services{margin:36px auto}
#services .lead{color:var(--muted)}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:16px}
.service{padding:16px;border-radius:20px}
.case{padding:16px;border-radius:20px;transition:all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);cursor:pointer}
.case:hover{transform:translateY(-4px) scale(1.02);box-shadow:0 15px 30px rgba(0,0,0,0.1)}
.case-header{display:flex;gap:12px;align-items:flex-start;margin-bottom:12px}
.case-icon{width:48px;height:48px;border-radius:12px;flex-shrink:0;box-shadow:0 4px 12px rgba(0,0,0,0.1);transition:all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)}
.case:hover .case-icon{transform:scale(1.1) rotate(5deg);box-shadow:0 8px 20px rgba(0,0,0,0.15)}
.case-info{flex:1}
.case-info h4{margin:0 0 4px;font-size:16px;font-weight:700;color:#0b1220}
.case-info p{margin:0;font-size:14px;color:#4b5563;line-height:1.4}
.case .tag{display:inline-block;margin-top:6px;background:rgba(0,0,0,.04);padding:6px 8px;border-radius:10px;border:1px solid var(--stroke);font-weight:700;transition:all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)}
.case:hover .tag{background:rgba(0,122,255,0.1);border-color:#007aff;color:#007aff;transform:translateY(-2px) scale(1.05)}

#portfolio{margin:34px auto}
#portfolio .lead{color:var(--muted)}

.contact{margin:40px auto;padding:24px;transition:all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)}
.contact:hover{transform:translateY(-2px);box-shadow:0 10px 25px rgba(0,0,0,0.1)}
.contact .grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
.list{list-style:none;padding:0;margin:10px 0}
.list li{margin:6px 0;color:#111827}
.form{display:grid;gap:12px}
.form label{display:grid;gap:6px;font-weight:700;color:#111827}
input,textarea{border:1px solid var(--stroke);border-radius:14px;padding:12px 14px;font:inherit;background:#fff;transition:all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)}
input:focus,textarea:focus{outline:2px solid rgba(0,122,255,.25);border-color:rgba(0,122,255,.45);transform:translateY(-1px);box-shadow:0 4px 12px rgba(0,122,255,0.15)}

.foot{margin:30px 0 50px}
.foot-row{display:flex;align-items:center;justify-content:center;width:min(1080px,92%);margin:0 auto;color:#6b7280;text-align:center;gap:20px}
.to-top{background:rgba(0,0,0,.06);padding:8px 10px;border-radius:12px;color:#111827;text-decoration:none;transition:all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)}
.to-top:hover{background:rgba(0,122,255,0.1);color:#007aff;transform:translateY(-2px) scale(1.05);text-decoration:none}

@keyframes shimmer{0%{background-position:-200px 0}100%{background-position:200px 0}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:0.7}}

/* Scroll Reveal Animations */
.scroll-reveal{opacity:0;transform:translateY(30px);transition:all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94)}
.scroll-reveal.revealed{opacity:1;transform:translateY(0)}

.scroll-reveal-left{opacity:0;transform:translateX(-50px);transition:all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94)}
.scroll-reveal-left.revealed{opacity:1;transform:translateX(0)}

.scroll-reveal-right{opacity:0;transform:translateX(50px);transition:all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94)}
.scroll-reveal-right.revealed{opacity:1;transform:translateX(0)}

.scroll-reveal-scale{opacity:0;transform:scale(0.8);transition:all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94)}
.scroll-reveal-scale.revealed{opacity:1;transform:scale(1)}

.scroll-reveal-delay-1{transition-delay:0.1s}
.scroll-reveal-delay-2{transition-delay:0.2s}
.scroll-reveal-delay-3{transition-delay:0.3s}
.scroll-reveal-delay-4{transition-delay:0.4s}
.scroll-reveal-delay-5{transition-delay:0.5s}

/* Contact section centering */
.contact .grid {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contact .scroll-reveal-left {
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width:980px){
  .hero{grid-template-columns:1fr;gap:18px}
  .featured .grid{grid-template-columns:1fr;gap:16px}
  .cards{grid-template-columns:1fr 1fr}
  .contact .grid{grid-template-columns:1fr}
  .iphone{width:280px}
}
@media (max-width:560px){
  .cards{grid-template-columns:1fr}
  .hero-copy h1{font-size:34px}
  .iphone{width:250px}
  .app-screenshot{object-position:center}
}
@media (max-width:400px){
  .iphone{width:220px}
  .screen-mock{margin:8px}
  .foot-row{flex-direction:column;gap:12px}
  .drawer-content{width:280px}
  .drawer-header{padding:16px 20px}
  .drawer-link{padding:14px 20px}
  .drawer-footer{padding:16px 20px}
}
