/*
Theme Name: ANMAMANA
Theme URI: https://anmamana.com/
Author: ANMAMANA
Description: Custom light homepage theme for ANMAMANA.
Version: 1.2.6
Text Domain: anmamana
*/

:root {
  --bg: #ffffff;
  --panel: #f5f5f5;
  --line: #e5e5e5;
  --text: #161616;
  --muted: #737373;
  --accent: #f36b16;
  --accent-2: #ff9b42;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, Pretendard, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin: auto; }

.site-header-stack {
  position: sticky;
  top: 0;
  z-index: 20;
  flex: 0 0 auto;
}

.topbar {
  background: #f5f5f5;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.topbar .wrap {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.account { display: flex; gap: 18px; color: #303030; }

.nav {
  position: relative;
  z-index: 1;
  background: rgba(243, 107, 22, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
}
.brand-logo {
  display: block;
  width: auto;
  height: 42px;
  max-width: min(70vw, 240px);
  object-fit: contain;
}
.nav .brand-logo { height: 46px; }
.site-footer .footer-brand-logo { height: 34px; }
.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #e9550b, #ffad5c, #ff7a1a, #e9550b);
  box-shadow: 0 10px 26px rgba(243, 107, 22, 0.24);
}
.nav .brand-mark {
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(113, 47, 6, 0.18);
}
.nav .brand, .nav .menu { color: #17120f; }
.menu { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 650; }
.menu a { padding: 10px 12px; border-radius: 9px; transition: color 160ms ease, background 160ms ease; }
.menu a:hover { color: var(--accent); background: #ffffff; }
.footer-links a:hover, .account a:hover { color: var(--accent); }
.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
}

.hero {
  min-height: clamp(400px, 46vh, 500px);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}
.hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
}
.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 20%, rgba(255, 255, 255, 0.94) 38%, rgba(255, 255, 255, 0.94) 62%, transparent 80%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(42px, 6.2vw, 88px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0.01em;
  color: var(--text);
  text-shadow: none;
}
.hero p {
  margin: 0 auto;
  color: #666666;
  font-size: 18px;
  line-height: 1.75;
  max-width: 650px;
}
.hero-content::after {
  content: "";
  display: block;
  width: 76px;
  height: 5px;
  margin: 28px auto 0;
  border-radius: 999px;
  background: var(--accent);
}

.content-space {
  flex: 1 0 auto;
  min-height: clamp(360px, 42vh, 620px);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.legal-page {
  flex: 1 0 auto;
  background: #f5f5f5;
  padding: 64px 0 80px;
}
.legal-shell {
  width: min(calc(100% - 40px), 900px);
  margin: 0 auto;
}
.legal-heading {
  margin-bottom: 28px;
  padding-left: 18px;
  border-left: 5px solid var(--accent);
}
.legal-heading h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
}
.legal-heading p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.legal-content {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(25, 20, 16, 0.06);
}
.legal-content h2 {
  margin: 42px 0 14px;
  color: var(--text);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.25;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin: 26px 0 10px; font-size: 19px; }
.legal-content p, .legal-content li {
  color: #4b4b4b;
  font-size: 16px;
  line-height: 1.8;
}
.legal-content ul { margin: 12px 0 20px; padding-left: 24px; }
.legal-content a { color: #c94f06; text-decoration: underline; text-underline-offset: 3px; }
.legal-content strong { color: #282828; }
.legal-notice {
  margin: 0 0 28px;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: #fff4eb;
  color: #5f3216;
}

.site-footer { flex: 0 0 auto; padding: 58px 0 28px; color: var(--muted); background: #f5f5f5; }
.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-main p { max-width: 560px; margin: 18px 0 0; line-height: 1.7; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 12px 24px;
  color: #333333;
  font-size: 13px;
}
.footer-note { max-width: 700px; color: #777777; font-size: 12px; line-height: 1.65; }
.footer-copy { padding-top: 24px; font-size: 12px; display: flex; justify-content: space-between; gap: 30px; }

@media (max-width: 900px) {
  .menu { display: none; }
  .menu-button { display: block; }
  .hero { min-height: 420px; }
}

@media (max-width: 560px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .topbar .tagline { display: none; }
  .nav .wrap { height: 68px; }
  .nav .brand-logo { height: 40px; max-width: 210px; }
  .hero { min-height: 500px; }
  .hero::before { background: none; }
  .hero-content { transform: translateY(-90px); }
  .hero h1 { font-size: clamp(38px, 12vw, 54px); }
  .hero p { font-size: 15px; line-height: 1.6; }
  .content-space { min-height: 320px; }
  .legal-page { padding: 38px 0 56px; }
  .legal-shell { width: min(calc(100% - 28px), 900px); }
  .legal-content { border-radius: 12px; }
  .legal-content p, .legal-content li { font-size: 15px; }
  .footer-main, .footer-copy { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}
