*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --sky:      #5BB8F5;
  --sky-lt:   #D6EEFF;
  --sky-dk:   #2E87C8;
  --sun:      #FFD260;
  --sun-lt:   #FFF3C4;
  --sun-dk:   #C98B00;
  --mint:     #4ECBA5;
  --mint-lt:  #C8F5E8;
  --mint-dk:  #2A9A7A;
  --coral:    #FF7B6B;
  --coral-lt: #FFE0DC;
  --lav:      #A78BFA;
  --lav-lt:   #EDE9FE;
  --lav-dk:   #7C5CCC;
  --bg:       #F0F9FF;
  --bg2:      #E6F4FC;
  --white:    #FFFFFF;
  --ink:      #1A2B3C;
  --ink-m:    #4A6278;
  --ink-f:    #90A8BA;
  --r-sm: 8px; --r-md: 16px; --r-lg: 24px; --r-xl: 40px;
  --sh-sm: 0 2px 10px rgba(91,184,245,.12);
  --sh-md: 0 6px 24px rgba(91,184,245,.18);
  --sh-lg: 0 12px 48px rgba(91,184,245,.22);
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 15px;
  padding-bottom: 80px;
  overflow-x: hidden;
}

/* SKIP LINK */
.skip-link {
  position: absolute; top: -100px; left: 12px;
  background: var(--sky-dk); color: #fff;
  padding: 10px 20px; border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: 13px; font-weight: 500; text-decoration: none;
  z-index: 9999; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* SCROLL REVEAL */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.vis { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }

/* PAGE HERO */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--sky-dk) 0%, #1a5ea0 50%, var(--mint-dk) 100%);
  padding: 80px 28px 60px;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1573164713714-d95e436ab8d6?w=1600&auto=format&fit=crop&q=60') center/cover no-repeat;
  opacity: .08;
}
.ph-blob1 {
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,210,96,.15) 0%, transparent 70%);
  top: -80px; right: -60px; pointer-events: none;
  animation: phb1 9s ease-in-out infinite;
}
.ph-blob2 {
  position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(167,139,250,.15) 0%, transparent 70%);
  bottom: -50px; left: -30px; pointer-events: none;
  animation: phb1 11s ease-in-out infinite 2s;
}
@keyframes phb1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(20px,-20px) scale(1.06)} }
.page-hero-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.ph-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.7); font-size: 12px; text-decoration: none;
  margin-bottom: 20px; transition: color .15s;
}
.ph-back:hover { color: #fff; }
.ph-back svg { width: 14px; height: 14px; }
.ph-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: .18em;
  color: #fff; background: rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  padding: 6px 16px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.25);
  margin-bottom: 20px;
}
.ph-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.5);opacity:.55} }
.page-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(30px, 6vw, 48px); font-weight: 300;
  color: #fff; line-height: 1.4; margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.page-hero p {
  font-size: 15px; color: rgba(255,255,255,.8); font-weight: 300;
}
.ph-stats {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
  margin-top: 32px;
}
.ph-stat {
  background: rgba(255,255,255,.15); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--r-md); padding: 12px 20px;
  text-align: center; color: #fff;
}
.ph-stat-n { font-family: 'Noto Serif JP', serif; font-size: 22px; font-weight: 300; line-height: 1.2; }
.ph-stat-l { font-size: 10px; opacity: .7; margin-top: 2px; letter-spacing: .06em; }

/* SECTION */
.sec { max-width: 800px; margin: 0 auto; padding: 72px 28px; }
.sec + .sec { border-top: 1.5px dashed rgba(91,184,245,.22); }
.sec-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sky-lt); color: var(--sky-dk);
  font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 20px;
}
.sec-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 4vw, 32px); font-weight: 300;
  color: var(--ink); margin-bottom: 12px; line-height: 1.45;
}
.sec-lead { font-size: 15px; color: var(--ink-m); line-height: 1.85; margin-bottom: 40px; }

/* =====================
   WORK TABS
   ===================== */
.tab-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 36px;
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 8px;
  box-shadow: var(--sh-sm);
  border: 1.5px solid var(--sky-lt);
}
.tab-btn {
  flex: 1; min-width: 120px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 10px;
  border: none; background: transparent; cursor: pointer;
  border-radius: var(--r-lg);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px; font-weight: 500; color: var(--ink-m);
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
  position: relative;
}
.tab-btn:hover { background: var(--bg2); color: var(--ink); }
.tab-btn.active {
  background: linear-gradient(135deg, var(--sky-dk), #1a5ea0);
  color: #fff;
  box-shadow: 0 4px 16px rgba(46,135,200,.35);
  transform: translateY(-2px);
}
.tab-btn .tb-emoji { font-size: 22px; transition: transform .2s; }
.tab-btn:hover .tb-emoji { transform: scale(1.15) rotate(-5deg); }
.tab-btn.active .tb-emoji { transform: scale(1.1); }
.tab-btn .tb-badge {
  display: none;
  position: absolute; top: 6px; right: 8px;
  font-size: 9px; font-weight: 500; padding: 2px 7px; border-radius: 100px;
  background: var(--sky-lt); color: var(--sky-dk);
}
.tab-btn.active .tb-badge { display: inline-block; background: rgba(255,255,255,.25); color: #fff; }

/* Tab panels */
.tab-panels { position: relative; }
.tab-panel { display: none; animation: fadeTab .45s cubic-bezier(.22,1,.36,1); }
.tab-panel.active { display: block; }
@keyframes fadeTab { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Work detail card */
.wk-hero {
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--sh-md);
  margin-bottom: 32px;
  position: relative;
}
.wk-hero-img {
  width: 100%; height: 280px; object-fit: cover; display: block;
}
.wk-hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(14,50,80,.8) 0%, transparent 100%);
  padding: 32px 32px 24px;
  display: flex; align-items: flex-end; gap: 16px;
}
.wk-hero-emoji { font-size: 48px; flex-shrink: 0; filter: drop-shadow(0 2px 8px rgba(0,0,0,.3)); }
.wk-hero-text h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(20px, 4vw, 28px); font-weight: 300; color: #fff;
  line-height: 1.35; margin-bottom: 6px;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.wk-tag {
  display: inline-block; font-size: 11px; font-weight: 500;
  padding: 3px 10px; border-radius: 100px;
}
.t-sky   { background: var(--sky-lt);   color: var(--sky-dk); }
.t-sun   { background: var(--sun-lt);   color: var(--sun-dk); }
.t-mint  { background: var(--mint-lt);  color: var(--mint-dk); }
.t-coral { background: var(--coral-lt); color: #c0392b; }

/* Detail content */
.wk-body { display: grid; gap: 24px; }
.wk-desc {
  background: var(--white); border-radius: var(--r-xl);
  padding: 32px; box-shadow: var(--sh-sm);
  border: 1.5px solid var(--sky-lt);
  font-size: 15px; color: var(--ink-m); line-height: 1.9;
}
.wk-desc h3 {
  font-family: 'Noto Serif JP', serif; font-size: 17px; font-weight: 400;
  color: var(--ink); margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 1.5px dashed rgba(91,184,245,.25);
}

.wk-points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wk-point {
  background: var(--white); border-radius: var(--r-lg); padding: 22px 20px;
  box-shadow: var(--sh-sm); border: 1.5px solid var(--sky-lt);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  cursor: default;
}
.wk-point:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--sky); }
.wp-icon { font-size: 28px; display: block; margin-bottom: 10px; transition: transform .25s; }
.wk-point:hover .wp-icon { transform: scale(1.18) rotate(6deg); }
.wp-title { font-weight: 500; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.wp-desc { font-size: 12px; color: var(--ink-m); line-height: 1.75; }

/* SDG row */
.sdg-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.sdg {
  font-size: 11px; font-weight: 500; padding: 4px 11px; border-radius: 100px;
  background: var(--mint-lt); color: var(--mint-dk);
  border: 1px solid rgba(78,203,165,.3);
}

/* Work steps */
.wk-steps { margin-top: 4px; }
.wk-steps h3 {
  font-family: 'Noto Serif JP', serif; font-size: 16px; font-weight: 400;
  color: var(--ink); margin-bottom: 16px;
}
.step-list { display: flex; flex-direction: column; gap: 10px; }
.step-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--white); border-radius: var(--r-lg);
  padding: 16px 20px; box-shadow: var(--sh-sm); border: 1.5px solid var(--sky-lt);
  transition: transform .2s, border-color .2s;
}
.step-item:hover { transform: translateX(5px); border-color: var(--sky); }
.step-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--sky), var(--sky-dk));
  color: #fff; font-size: 13px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(91,184,245,.35);
}
.step-text { flex: 1; }
.step-title { font-weight: 500; font-size: 14px; color: var(--ink); margin-bottom: 3px; }
.step-desc { font-size: 12px; color: var(--ink-m); line-height: 1.7; }

/* Gallery strip */
.wk-gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px;
}
.wk-gal-img {
  width: 100%; height: 150px; object-fit: cover;
  border-radius: var(--r-lg); display: block;
  box-shadow: var(--sh-sm);
  transition: transform .3s, box-shadow .3s;
}
.wk-gal-img:hover { transform: scale(1.02); box-shadow: var(--sh-md); }

/* Highlight box */
.hl-box {
  background: linear-gradient(135deg, var(--sky-lt), var(--mint-lt));
  border-radius: var(--r-lg); padding: 20px 24px;
  border-left: 4px solid var(--sky);
  font-size: 14px; color: var(--ink-m); line-height: 1.8;
}
.hl-box strong { color: var(--sky-dk); font-weight: 500; }

/* Sun/coral specific step numbers */
.step-num-sun  { background: linear-gradient(135deg, var(--sun), var(--sun-dk)); }
.step-num-mint { background: linear-gradient(135deg, var(--mint), var(--mint-dk)); }
.step-num-coral { background: linear-gradient(135deg, var(--coral), #c0392b); }

/* OVERVIEW CTA */
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.ov-card {
  background: var(--white); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--sh-sm);
  border: 1.5px solid var(--sky-lt);
  transition: transform .25s, box-shadow .25s; cursor: pointer;
}
.ov-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.ov-img { width: 100%; height: 130px; object-fit: cover; display: block; }
.ov-body { padding: 16px 18px; }
.ov-emoji { font-size: 28px; margin-bottom: 8px; display: block; transition: transform .25s; }
.ov-card:hover .ov-emoji { transform: scale(1.2) rotate(-5deg); }
.ov-title { font-weight: 500; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.ov-desc { font-size: 12px; color: var(--ink-m); line-height: 1.65; }
.ov-arrow {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--sky-dk); font-size: 12px; font-weight: 500; margin-top: 10px;
}

/* BOTTOM NAV */
.bnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(240,249,255,.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1.5px solid rgba(91,184,245,.2);
  display: flex; z-index: 100; height: 64px;
}
.ni {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; text-decoration: none; color: var(--ink-f); font-size: 10px; letter-spacing: .04em;
  transition: color .15s; cursor: pointer; border: none; background: none; position: relative;
  -webkit-tap-highlight-color: transparent;
}
.ni.active, .ni:hover { color: var(--sky-dk); }
.ni svg { width: 22px; height: 22px; transition: transform .2s; }
.ni:hover svg { transform: translateY(-2px) scale(1.1); }
.ni.active::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 32px; height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--mint));
  border-radius: 0 0 4px 4px;
}
.sub {
  position: absolute; bottom: calc(100% + 8px);
  left: 50%; transform: translateX(-50%);
  width: 200px; max-width: calc(100vw - 24px);
  background: var(--white); border-radius: 14px;
  box-shadow: 0 4px 28px rgba(91,184,245,.22);
  overflow: hidden; max-height: 0;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}
.ni.open .sub { max-height: 420px; }
@media(max-width: 360px) { .sub { left: 0; transform: none; } }
.sub a {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; font-size: 14px; color: var(--ink-m); text-decoration: none;
  border-bottom: 1px solid var(--bg2);
  transition: background .12s, color .12s, padding-left .15s;
}
.sub a::before { content: '›'; color: var(--sky); font-size: 18px; line-height: 1; transition: transform .15s; }
.sub a:last-child { border-bottom: none; }
.sub a:hover { background: var(--bg2); color: var(--sky-dk); padding-left: 26px; }
.sub a:hover::before { transform: translateX(3px); }

/* FOOTER */
.site-footer {
  max-width: 800px; margin: 0 auto; padding: 48px 28px 100px;
  text-align: center; border-top: 1.5px dashed rgba(91,184,245,.22);
}
.footer-logo { font-family: 'Noto Serif JP', serif; font-size: 22px; font-weight: 300; color: var(--sky-dk); margin-bottom: 16px; }
.footer-logo span { color: var(--mint-dk); }
.footer-address { font-style: normal; font-size: 13px; color: var(--ink-m); display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.footer-tel a { font-size: 14px; font-weight: 500; color: var(--sky-dk); text-decoration: none; display: inline-block; margin-bottom: 6px; }
.footer-tel a:hover { text-decoration: underline; }
.footer-hours { font-size: 12px; color: var(--ink-f); margin-bottom: 20px; }
.footer-copy { font-size: 11px; color: var(--ink-f); }

strong { font-weight: 500; color: var(--ink); }

@media (max-width: 560px) {
  .page-hero { padding: 64px 20px 48px; }
  .ph-stats { gap: 10px; }
  .ph-stat { padding: 10px 14px; }
  .wk-points { grid-template-columns: 1fr; }
  .wk-gallery { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .tab-bar { gap: 6px; padding: 6px; }
  .tab-btn { min-width: 80px; padding: 10px 6px; font-size: 11px; }
  .tab-btn .tb-emoji { font-size: 18px; }
  .wk-hero-img { height: 200px; }
  .wk-hero-overlay { padding: 20px 20px 16px; }
  .wk-hero-emoji { font-size: 36px; }
  .sec { padding: 52px 20px; }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 16px 0;
}
.footer-nav a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 12px;
}
.footer-nav a:hover { color: #fff; }