/* ==========================================================================
   星野まどか経営相談室 / Freelancer Consultant LP Sample
   ========================================================================== */

:root {
  --color-bg: #fffaf3;
  --color-bg-alt: #fef1e2;
  --color-ink: #3d332a;
  --color-ink-soft: #7a6d5f;
  --color-accent: #e8763c;
  --color-accent-deep: #c85f2b;
  --color-accent-soft: #fde3ce;
  --color-line: rgba(61, 51, 42, 0.1);
  --font-heading: 'Zen Maru Gothic', sans-serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --header-h: 78px;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.95;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--color-accent-deep);
  font-weight: 700;
  margin-bottom: 14px;
}
.eyebrow--center { text-align: center; }

.section-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  line-height: 1.6;
  color: var(--color-ink);
  text-align: center;
}
.profile .section-title,
.profile .eyebrow { text-align: left; }

.section-lead {
  margin-top: 20px;
  text-align: center;
  color: var(--color-ink-soft);
  font-size: 0.94rem;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  z-index: 500;
  background: rgba(255, 250, 243, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-color: var(--color-line);
  box-shadow: 0 2px 16px rgba(61,51,42,0.05);
}

.site-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.site-logo span {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--color-ink-soft);
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-link {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--color-ink);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link--cta {
  background: var(--color-accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 500;
}
.nav-link--cta::after { display: none; }
.nav-link--cta:hover { background: var(--color-accent-deep); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 600;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--color-ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 8vh) 6vw 10vh;
  overflow: hidden;
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}
.hero-shape--1 {
  width: 520px; height: 520px;
  background: var(--color-accent-soft);
  top: -180px; right: -160px;
}
.hero-shape--2 {
  width: 280px; height: 280px;
  background: var(--color-bg-alt);
  bottom: -120px; left: -100px;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 6vw;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}
.hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.55;
  color: var(--color-ink);
  margin-top: 6px;
}
.hero-lead {
  margin-top: 26px;
  font-size: 0.98rem;
  color: var(--color-ink-soft);
}
.hero-cta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  padding: 18px 38px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(232,118,60,0.28);
  transition: background 0.3s ease, transform 0.2s ease;
}
.btn-primary:hover { background: var(--color-accent-deep); transform: translateY(-2px); }
.btn-text {
  font-size: 0.88rem;
  color: var(--color-ink-soft);
  border-bottom: 1px solid var(--color-ink-soft);
  padding-bottom: 2px;
}

.hero-photo { position: relative; display: flex; justify-content: center; }
.hero-photo-frame {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid #fff;
  box-shadow: 0 20px 50px rgba(61,51,42,0.14);
}
.hero-photo-frame img {
  object-position: 50% 15%;
}
.hero-badge {
  position: absolute;
  bottom: 6%;
  right: 2%;
  background: #fff;
  border-radius: 50%;
  width: 108px;
  height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.7rem;
  color: var(--color-ink-soft);
  box-shadow: 0 10px 26px rgba(61,51,42,0.16);
  line-height: 1.5;
}
.hero-badge b {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-accent-deep);
  display: block;
}

/* ---------- service ---------- */
.service { padding: 12vh 6vw; }
.service-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.service-card {
  background: var(--color-bg-alt);
  border-radius: 28px;
  padding: 36px 34px;
  position: relative;
}
.service-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.6;
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 14px;
  margin-bottom: 14px;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--color-ink-soft);
}

/* ---------- price ---------- */
.price { padding: 12vh 6vw; background: var(--color-bg-alt); }
.price-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}
.price-card {
  background: var(--color-bg);
  border-radius: 28px;
  padding: 40px 32px;
  text-align: center;
  border: 1px solid var(--color-line);
  position: relative;
}
.price-card--featured {
  background: var(--color-ink);
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 20px 44px rgba(61,51,42,0.2);
  border: none;
}
.price-card--featured .price-num,
.price-card--featured h3 { color: #fff; }
.price-card--featured .price-list li { color: rgba(255,255,255,0.75); }
.price-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.price-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}
.price-value { margin-top: 20px; }
.price-num {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--color-accent-deep);
}
.price-unit { font-size: 0.82rem; margin-left: 4px; }
.price-list {
  margin-top: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-list li {
  font-size: 0.82rem;
  color: var(--color-ink-soft);
  padding-left: 20px;
  position: relative;
}
.price-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}
.price-card--featured .price-list li::before { color: var(--color-accent); }
.price-note {
  margin-top: 40px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-ink-soft);
  opacity: 0.8;
}

/* ---------- voice ---------- */
.voice { padding: 12vh 6vw; }
.voice-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}
.voice-card {
  background: var(--color-bg-alt);
  border-radius: 28px;
  padding: 36px 30px;
  position: relative;
}
.voice-quote {
  font-size: 0.88rem;
  color: var(--color-ink);
  line-height: 1.95;
  position: relative;
}
.voice-quote::before {
  content: '“';
  font-family: var(--font-heading);
  font-size: 2.6rem;
  color: var(--color-accent);
  display: block;
  line-height: 0.6;
  margin-bottom: 14px;
  opacity: 0.8;
}
.voice-person {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.voice-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
}
.voice-role { font-size: 0.78rem; color: var(--color-ink-soft); }

/* ---------- profile ---------- */
.profile {
  padding: 12vh 6vw;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 6vw;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}
.profile-photo {
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.profile-name {
  margin-top: 18px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
}
.profile-name span {
  display: block;
  font-size: 0.75rem;
  color: var(--color-ink-soft);
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.profile-role {
  margin-top: 10px;
  color: var(--color-accent-deep);
  font-size: 0.9rem;
  font-weight: 500;
}
.profile-body {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  max-width: 56ch;
}
.profile-tags {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.profile-tags li {
  background: var(--color-bg-alt);
  color: var(--color-accent-deep);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------- contact ---------- */
.contact-section { padding: 12vh 6vw; background: var(--color-bg-alt); }
.contact-form {
  max-width: 620px;
  margin: 50px auto 0;
}
.form-row { margin-bottom: 24px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 10px;
  font-weight: 500;
}
.req {
  font-size: 0.65rem;
  background: var(--color-accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-bg);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--color-ink);
  transition: border-color 0.3s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-row textarea { resize: vertical; }

.submit-btn {
  display: block;
  width: 100%;
  padding: 19px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(232,118,60,0.28);
  transition: background 0.3s ease, transform 0.2s ease;
}
.submit-btn:hover { background: var(--color-accent-deep); }
.submit-btn:active { transform: scale(0.98); }

.form-note {
  margin-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-accent-deep);
  min-height: 1.4em;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--color-ink);
  color: var(--color-bg);
  text-align: center;
  padding: 56px 6vw 36px;
}
.footer-logo { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; }
.footer-copy { margin-top: 18px; font-size: 0.75rem; opacity: 0.55; }
.footer-demo {
  margin-top: 14px;
  font-size: 0.7rem;
  opacity: 0.4;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- back to top ---------- */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 20px rgba(232,118,60,0.3);
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
/* 送信ボタン付近ではタップ領域の重なりを避けるため一時的に非表示にする */
.back-to-top.is-near-submit { opacity: 0; pointer-events: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .price-grid { grid-template-columns: 1fr; max-width: 440px; }
  .price-card--featured { transform: none; }
  .voice-grid { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-photo { order: -1; margin-bottom: 20px; }
  .hero-photo-frame { max-width: 260px; }
  .service-grid { grid-template-columns: 1fr; max-width: 560px; }
  .profile { grid-template-columns: 1fr; }
  .profile-photo { max-width: 360px; margin: 0 auto; aspect-ratio: 4/3; }
  .profile .section-title,
  .profile .eyebrow { text-align: center; }
  .profile-name, .profile-role, .profile-body { text-align: center; margin-left: auto; margin-right: auto; }
  .profile-tags { justify-content: center; }
}

@media (max-width: 720px) {
  :root { --header-h: 68px; }

  .global-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 80vw;
    max-width: 320px;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 0 40px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.08);
  }
  .global-nav.open { transform: translateX(0); }
  .nav-link { font-size: 1.05rem; }
  .nav-link--cta { margin-top: 6px; }
  .menu-toggle { display: flex; }

  .hero-shape--1 { width: 320px; height: 320px; top: -120px; right: -120px; }
  .hero-shape--2 { width: 180px; height: 180px; }

  .back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
