
:root {
  --green-dark: #4f7056;
  --green: #7f9f7d;
  --green-soft: #dfeee0;
  --cream: #fbfaf2;
  --white: #fffef8;
  --line: #c9d8c6;
  --text: #405045;
  --muted: #718070;
  --shadow: 0 16px 40px rgba(75, 105, 74, 0.16);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  margin: 0;
  font-family: "Noto Serif TC", "Noto Sans TC", "Microsoft JhengHei", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(214, 236, 209, 0.8), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(242, 247, 229, 0.9), transparent 28%),
    linear-gradient(180deg, #f4f8ee 0%, #fffdf4 45%, #eaf4e7 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(251, 250, 242, 0.82);
  border-bottom: 1px solid rgba(176, 198, 170, 0.45);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  white-space: nowrap;
  z-index: 60;
}

.ghost-logo {
  width: 42px;
  height: 42px;
  font-size:13px;
  border-radius: 50% 50% 45% 45%;
  background: var(--white);
  border: 2px solid var(--line);
  position: relative;
  box-shadow: 0 8px 20px rgba(79, 112, 86, 0.12);
  flex: 0 0 auto;
}



.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  font-size: 15px;
  color: #536553;
  letter-spacing: 0.08em;
}

.nav-btn {
  background: var(--green-dark);
  color: white;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(79, 112, 86, 0.24);
  font-weight: 700;
}

.menu-toggle {
  display: none;
}

.menu-button {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 248, 0.9);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 999px;
  transition: 0.2s;
  position: relative;
}

.menu-button span::before {
  position: absolute;
  top: -7px;
}

.menu-button span::after {
  position: absolute;
  top: 7px;
}

.mobile-nav {
  display: none;
}

/* Hero */
.hero{
    min-height:560px;
    display:grid;
    grid-template-columns:280px 520px;
    gap:60px;

    justify-content:center;
    align-items:center;

    padding:20px 0 40px;

    position:relative;
    overflow:hidden;
    border-radius:0 0 72px 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 -24px 0;
  height: auto;
  border-radius: 0 0 72px 72px;
  background:
    linear-gradient(
      rgba(244,250,238,0.62),
      rgba(247,251,239,0.82)
    ),
    url("../images/background.png");
  background-size: 1200px auto;
  background-position: center center;
  z-index: -2;
  filter: saturate(0.8);
}

.hero-art {
  position: relative;
  width: clamp(220px, 24vw, 300px);
  height: clamp(300px, 32vw, 380px);
  min-height: clamp(300px, 32vw, 380px);
  max-width: 300px;
  margin: 0 auto;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 22%, rgba(255,255,255,0.98), rgba(238,247,233,0.7) 46%, rgba(215,233,211,0.45)),
    linear-gradient(180deg, #f9fff7, #e4f0dd);
  border: 1px solid rgba(174, 197, 166, 0.6);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.character-placeholder {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 20%, #fff 0 8%, transparent 9%),
    linear-gradient(180deg, #fffef8 0%, #eef5e9 35%, #93ad88 100%);
  border: 1px solid #d7e2d0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  overflow: hidden;
}

.character-placeholder b {
  color: var(--green-dark);
  font-size: 20px;
  display: block;
  margin-bottom: 8px;
}

.flower {
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border: 1px solid #d3dfcf;
  border-radius: 50%;
  box-shadow:
    14px 0 0 white,
    7px -12px 0 white,
    7px 12px 0 white;
  opacity: 0.9;
}

.f1 { left: 40px; top: 80px; }
.f2 { right: 60px; top: 160px; transform: scale(0.8); }
.f3 { left: 70px; bottom: 90px; transform: scale(0.7); }

.floating-ghost {
  position: absolute;
  width: 72px;
  height: 82px;
  border-radius: 50% 50% 40% 40%;
  background: rgba(255,255,255,0.95);
  border: 1px solid #d7e2d0;
  box-shadow: 0 12px 24px rgba(80, 112, 86, 0.12);
  animation: float 4s ease-in-out infinite;
}

.floating-ghost::before,
.floating-ghost::after {
  content: "";
  position: absolute;
  top: 28px;
  width: 6px;
  height: 6px;
  background: var(--green-dark);
  border-radius: 50%;
}

.floating-ghost::before { left: 24px; }
.floating-ghost::after { right: 24px; }

.g1 { right: 48px; bottom: 165px; }
.g2 { left: 46px; bottom: 230px; transform: scale(0.72); animation-delay: 1s; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

.hero-copy {
  width:520px;
  max-width:520px;
  padding: 0;
  text-align: left;
}

.eyebrow {
  color: var(--green);
  letter-spacing: 0.22em;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(38px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: 0.04em;
}

.subtitle {
  margin: 14px 0 0;
  font-size: 17px;
  color: #526653;
  letter-spacing: 0.12em;
}

.desc {
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 520px;
}

.status-card {
  width: 100%;
  max-width: 470px;
  background: rgba(255,255,248,0.72);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 12px 28px rgba(79, 112, 86, 0.1);
  margin: 20px 0 0;
}

.status-title {
  text-align: center;
  color: var(--green-dark);
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(201, 216, 198, 0.75);
  font-size: clamp(14px, 1.6vw, 16px);
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--green);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 20px;
}

.btn {
  border: 1px solid var(--green-dark);
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 54px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(79, 112, 86, 0.16);
}

.btn.primary {
  background: var(--green-dark);
  color: white;
}

.btn.secondary {
  background: rgba(255,255,248,0.78);
  color: var(--green-dark);
}

section {
  padding: clamp(44px, 6vw, 56px) 0;
  scroll-margin-top: 40px;
}

.section-title {
  text-align: center;
  margin-bottom: 34px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 34px);
  color: var(--green-dark);
  letter-spacing: 0.18em;
}

.section-title p {
  margin: 6px 0 0;
  color: var(--green);
  letter-spacing: 0.2em;
  font-size: 13px;
  text-transform: uppercase;
}

.works-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
}

.panel {
  background: rgba(255, 254, 248, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(79, 112, 86, 0.09);
  padding: clamp(18px, 3vw, 24px);
}

.panel h3 {
  margin: 0 0 18px;
  color: var(--green-dark);
  letter-spacing: 0.08em;
  font-size: clamp(18px, 2.2vw, 21px);
}

.live2d-preview {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}

.preview-main,
.preview-small,
.illust-item {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.7), rgba(226,239,221,0.68)),
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(127,159,125,0.06) 8px 16px);
  border: 1px solid #d9e5d4;
  border-radius: 18px;
  min-height: 260px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 16px;
}

.preview-small {
  min-height: 122px;
  font-size: 14px;
}

.small-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.illust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.illust-item {
  min-height: 122px;
  border-radius: 16px;
  font-size: 13px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.service {
  min-height: 270px;
  position: relative;
  overflow: hidden;
}
.service-note{
  margin: 28px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.08em;
}
.service h3 {
  font-size: clamp(19px, 2vw, 22px);
  margin-bottom: 8px;
}

.price {
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 18px;
}

.service ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  line-height: 2;
  font-size: 15px;
}

.service li::before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
  margin-right: 8px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  text-align: center;
  padding: 22px 18px;
}

.step-number {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 900;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.contact {
  background: linear-gradient(135deg, rgba(79,112,86,0.92), rgba(114,149,107,0.9));
  color: white;
  border-radius: 42px 42px 0 0;
  padding: clamp(34px, 5vw, 46px);
  text-align: center;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.contact h2 {
  margin: 0 0 10px;
  font-size: clamp(25px, 4vw, 32px);
  letter-spacing: 0.12em;
}

.contact p {
  opacity: 0.88;
  margin-bottom: 26px;
  line-height: 1.8;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-links a {
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.1);
  padding: 14px 24px;
  border-radius: 18px;
  min-width: 160px;
}

/* 手機：小螢幕才改成單欄 */
@media (max-width: 760px) {

  .page {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    min-height: 72px;
  }

  .brand {
    gap: 10px;
  }

  .brand span:last-child {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

    .ghost-logo{
        width:56px;
        height:56px;

        display:flex;
        align-items:center;
        justify-content:center;

        background:rgba(255,255,255,0.85);

        border:2px solid var(--line);
        border-radius:50%;

        box-shadow:0 8px 20px rgba(79,112,86,0.12);

        color:var(--green-dark);

        font-size:16px;
        font-weight:700;
        line-height:1;

        flex-shrink:0;
    }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: flex;
  }

  .mobile-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 18px;
    background: rgba(251, 250, 242, 0.96);
    border: 1px solid rgba(176, 198, 170, 0.45);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 16px 28px rgba(79, 112, 86, 0.12);
    flex-direction: column;
    gap: 14px;
    text-align: center;
    z-index: 55;
  }

  .menu-toggle:checked ~ .mobile-nav {
    display: flex;
  }

  .menu-toggle:checked + .menu-button span {
    background: transparent;
  }

  .menu-toggle:checked + .menu-button span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-toggle:checked + .menu-button span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding: 28px 0 40px;
    gap: 22px;
  }

  .hero::before {
    inset: 0 -14px 0;
    border-radius: 0 0 48px 48px;
    background-size: 1050px auto;
    background-position: center top;
  }

  .hero-art {
    width: min(72vw, 260px);
    height: min(92vw, 340px);
    min-height: 300px;
    max-width: 260px;
    border-radius: 30px;
    margin: 0 auto 18px;
  }

  .character-placeholder {
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    padding: 0;
  }

  .floating-ghost {
    width: 54px;
    height: 62px;
  }

  .floating-ghost::before,
  .floating-ghost::after {
    top: 22px;
  }

  .floating-ghost::before { left: 18px; }
  .floating-ghost::after { right: 18px; }

  .g1 { right: 24px; bottom: 120px; }
  .g2 { left: 24px; bottom: 185px; }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    padding-top: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .eyebrow {
    font-size: 12px;
    letter-spacing: 0.18em;
  }

  h1 {
    font-size: clamp(42px, 13vw, 62px);
    line-height: 1;
  }

  .subtitle {
    font-size: clamp(15px, 4.5vw, 19px);
    letter-spacing: 0.06em;
  }

  .desc {
    text-align: center;
    max-width: 500px;
    margin: 18px auto;
  }

  .status-card {
    width: min(100%, 500px);
    margin-left: auto;
    margin-right: auto;
  }

  .status-row {
    align-items: center;
  }

  .hero-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  .btn {
    width: auto;
    min-width: 170px;
    padding: 14px 28px;
  }

  .live2d-preview {
    grid-template-columns: 1fr;
  }

  .small-grid,
  .illust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-main {
    min-height: 220px;
  }

  .preview-small,
  .illust-item {
    min-height: 112px;
  }


  /* 作品展示區：手機版改成單欄 */
  .works-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .panel {
    padding: 20px;
  }

  .panel h3 {
    text-align: center;
  }

  .live2d-preview {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .preview-main {
    min-height: 180px;
  }

  .small-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .preview-small {
    min-height: 90px;
  }

  .illust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .illust-item {
    min-height: 100px;
  }

  .services-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .contact-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-links a {
    width: 100%;
  }
}

/* 小手機 */
@media (max-width: 420px) {
  .page {
    width: min(100% - 18px, 1180px);
  }

  .brand span:last-child {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ghost-logo {
    width: 40px;
    height: 40px;
  }

  .hero-art {
    width: 220px;
    height: 300px;
    min-height: 300px;
    max-width: 220px;
  }

  .character-placeholder {
    width: calc(100% - 28px);
    height: calc(100% - 28px);
  }

  h1 {
    font-size: clamp(38px, 14vw, 56px);
  }

  .status-card {
    border-radius: 20px;
    padding: 18px 20px;
  }

  .status-row {
    font-size: 13px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: min(100%, 260px);
  }

  .panel {
    border-radius: 22px;
  }

  .illust-grid,
  .small-grid {
    grid-template-columns: 1fr;
  }

  .preview-main {
    min-height: 160px;
  }

  .preview-small,
  .illust-item {
    min-height: 90px;
  }


  .small-grid,
  .illust-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    border-radius: 30px 30px 0 0;
  }
}

.avatar-image{
  padding:0 !important;
  overflow:hidden;
  background: transparent;
}

.avatar-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
  transform:scale(1.2);
  display:block;
}


.works-page {
  padding: clamp(44px, 6vw, 72px) 0;
}

.works-page-note {
  width: fit-content;
  margin: 0 auto 32px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,248,0.75);
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.06em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,248,0.78);
  box-shadow: 0 12px 30px rgba(79, 112, 86, 0.09);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  background: rgba(229,240,225,0.8);
}

.gallery-info {
  padding: 18px 20px 20px;
}

.gallery-info h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 19px;
  letter-spacing: 0.08em;
}

.gallery-info p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.back-link-wrap {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

@media (max-width: 760px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .gallery-card {
    border-radius: 22px;
  }

  .gallery-info {
    padding: 14px 16px 16px;
  }

  .gallery-info h3 {
    font-size: 16px;
  }

  .works-page-note {
    text-align: center;
    line-height: 1.6;
    border-radius: 22px;
  }
}

@media (max-width: 420px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}