*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #e8729a;
  --accent2: #a78bfa;
  --text: #1e1b2e;
  --soft: #6b7280;
  --bg: #fff;
  --bg-soft: #faf8ff;
  --border: #ede9f7;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(167,139,250,.1);
  --shadow-lg: 0 12px 48px rgba(167,139,250,.18);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Hiragino Sans', 'Yu Gothic UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.75; overflow-x: hidden;
}
a { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── NAV ── */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 5%;
  background: rgba(255,255,255,.92); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(237,233,247,.8);
  transition: box-shadow .3s;
}
.nav-logo { font-size: 1.2rem; font-weight: 900; color: var(--text); letter-spacing: -.5px; }
.nav-logo em { font-style: normal; color: var(--accent); }
.nav-menu { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-menu a { color: var(--soft); font-size: .875rem; font-weight: 500; transition: color .2s; }
.nav-menu a:hover { color: var(--accent); }
.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent2)) !important;
  color: white !important; padding: 8px 20px; border-radius: 50px;
}
.nav-cta:hover { opacity: .88; }
.nav-notes {
  background: linear-gradient(135deg, var(--accent), var(--accent2)) !important;
  color: white !important; padding: 8px 20px; border-radius: 50px;
}
.nav-notes:hover { opacity: .88; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px;
  font-weight: 700; font-size: .9rem; font-family: inherit;
  transition: all .25s; white-space: nowrap; cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white; box-shadow: 0 4px 20px rgba(232,114,154,.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(232,114,154,.44); }
.btn-outline { background: white; color: var(--text); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-white { background: white; color: var(--accent); box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,0,0,.2); }

/* ── LAYOUT ── */
.page-section { padding: 80px 5%; }
.sec-bg { background: var(--bg-soft); }
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-size: .76rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px;
}
.section-label::before { content: '✦'; font-size: .62rem; }
.section-title {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800; letter-spacing: -.6px; line-height: 1.25; margin-bottom: 10px;
}
.section-desc { color: var(--soft); font-size: .97rem; line-height: 1.85; max-width: 540px; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  font-size: .8rem; color: var(--soft);
  padding: 12px 5%; border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.breadcrumb a { color: var(--soft); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .current { color: var(--accent); font-weight: 600; }
.bc-sep { opacity: .4; }

/* ── CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px; margin-top: 40px;
}
a.card {
  display: block; background: white; border: 1.5px solid var(--border);
  border-radius: 20px; overflow: hidden; color: inherit;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
a.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-thumb {
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; position: relative; overflow: hidden;
}
.card-overlay {
  position: absolute; inset: 0;
  background: rgba(30,27,46,.6);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  opacity: 0; transition: opacity .3s; color: white; gap: 6px;
}
.card-overlay span { font-size: 1.8rem; }
.card-overlay p { font-size: .85rem; font-weight: 700; }
a.card:hover .card-overlay { opacity: 1; }
.card-body { padding: 18px 20px; }
.card-tag {
  display: inline-block; font-size: .7rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  background: rgba(232,114,154,.1); color: var(--accent);
  padding: 3px 10px; border-radius: 50px; margin-bottom: 8px;
}
.card-title { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.card-desc  { font-size: .82rem; color: var(--soft); line-height: 1.6; }

/* ── ILLUSTRATION PALETTES ── */
.pal-anime    { background: linear-gradient(135deg,#fce4ec,#e1bee7); }
.pal-anime2   { background: linear-gradient(135deg,#f8bbd9,#ce93d8); }
.pal-fantasy  { background: linear-gradient(135deg,#1a1035,#5c35a0); }
.pal-fantasy2 { background: linear-gradient(135deg,#0d1b6e,#4a1a99); }
.pal-water    { background: linear-gradient(135deg,#e8f5e9,#b3e5fc,#f3e5f5); }
.pal-water2   { background: linear-gradient(135deg,#f3e5f5,#e1bee7,#b2ebf2); }
.pal-chibi    { background: linear-gradient(135deg,#fff9c4,#ffe082); }
.pal-chibi2   { background: linear-gradient(135deg,#ff9a9e,#fecfef,#ffd93d); }
.pal-bg       { background: linear-gradient(135deg,#e0f7fa,#c8e6c9); }
.pal-bg2      { background: linear-gradient(135deg,#fff3e0,#ffe0b2); }

/* ── STYLE PAGE HERO ── */
.style-hero { padding: 64px 5% 48px; display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.style-hero-icon {
  width: 110px; height: 110px; border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; flex-shrink: 0; box-shadow: var(--shadow-lg);
}
.style-hero-tag { color: var(--accent); font-size: .76rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.style-hero-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -1px; line-height: 1.2; margin-bottom: 12px; }
.style-hero-desc { color: var(--soft); font-size: 1rem; line-height: 1.85; max-width: 520px; }

/* ── WORK DETAIL ── */
.work-section { padding: 56px 5%; }
.work-illust-wrap {
  max-width: 640px; margin: 0 auto 48px;
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.work-illust {
  width: 100%; aspect-ratio: 3/4;
  display: flex; align-items: center; justify-content: center; font-size: 10rem;
}
.work-info { max-width: 640px; margin: 0 auto; }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.work-tag {
  padding: 5px 14px; border-radius: 50px; font-size: .78rem; font-weight: 600;
  background: var(--bg-soft); color: var(--soft); border: 1.5px solid var(--border);
}
.work-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; letter-spacing: -.5px; margin-bottom: 12px; }
.work-desc { color: var(--soft); line-height: 1.9; font-size: .97rem; margin-bottom: 28px; }
.work-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── CTA BANNER ── */
.cta-banner {
  margin: 0 5% 80px; border-radius: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  padding: 52px 5%; display: flex; align-items: center;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-banner-txt { color: white; }
.cta-label { font-size: .76rem; font-weight: 700; letter-spacing: 2px; opacity: .8; margin-bottom: 8px; text-transform: uppercase; }
.cta-title { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 900; line-height: 1.3; }
.cta-desc { opacity: .85; font-size: .92rem; margin-top: 8px; line-height: 1.7; }

/* ── FOOTER ── */
.site-footer {
  background: var(--text); color: rgba(255,255,255,.5);
  padding: 5px 5%; text-align: center; font-size: 1rem;
}
.footer-logo { color: white; font-size: 1.3rem; font-weight: 900; display: block; margin-bottom: 6px; }
.footer-logo em { font-style: normal; color: var(--accent); }
.site-footer a { color: rgba(255,255,255,.5); transition: color .2s; }
.site-footer a:hover { color: var(--accent); }

/* ── FADE ANIMATION ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .page-section { padding: 60px 5%; }
  .cta-banner { flex-direction: column; text-align: center; }
  .style-hero { flex-direction: column; }
  .work-actions { flex-direction: column; }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
}
