/* Template 16 - Japanese Zen */
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;600;700&family=Noto+Sans+JP:wght@300;400;500&display=swap");

:root {
  --sakura: #ffb7c5;
  --bamboo: #6b8e23;
  --ink: #2c2c2c;
  --paper: #f9f6f0;
  --stone: #8b8680;
  --red-seal: #d32f2f;

  --bg-primary: #fffef9;
  --bg-secondary: #f5f3ed;
  --text-primary: #2c2c2c;
  --text-secondary: #5a5a5a;
  --text-muted: #8b8680;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.9;
  color: var(--text-primary);
  background: var(--bg-primary);
  font-weight: 300;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1" fill="%23FFB7C5" opacity="0.15"/></svg>');
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header - Japanese Zen */
.site-header {
  background: var(--bg-primary);
  border-bottom: 2px solid var(--red-seal);
  padding: 2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.header-inner::before {
  content: "";
  position: absolute;
  top: -1rem;
  right: 2rem;
  width: 30px;
  height: 30px;
  background: var(--red-seal);
  border-radius: 50%;
  opacity: 0.8;
}

.site-logo a {
  font-family: "Noto Serif JP", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 4px;
  transition: all 0.4s ease;
  position: relative;
}

.site-logo a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--bamboo);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.site-logo a:hover::after {
  transform: scaleX(1);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 3rem;
  align-items: center;
}

.site-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: all 0.4s ease;
  position: relative;
  padding-bottom: 0.3rem;
}

.site-nav a::before {
  content: "◆";
  position: absolute;
  left: -15px;
  opacity: 0;
  color: var(--sakura);
  transition: all 0.4s ease;
}

.site-nav a:hover {
  color: var(--bamboo);
  padding-left: 20px;
}

.site-nav a:hover::before {
  opacity: 1;
  left: 0;
}

/* Hero Section */
.section.head {
  padding: 10rem 0;
  text-align: center;
  position: relative;
  background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-top: 3px solid var(--sakura);
  border-bottom: 3px solid var(--sakura);
  margin: 2rem 0;
}

.section.head::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 183, 197, 0.3);
  border-radius: 50%;
  animation: expandCircle 8s ease-in-out infinite;
}

@keyframes expandCircle {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.1;
  }
}

.section.head h1 {
  font-family: "Noto Serif JP", serif;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--ink);
  letter-spacing: 8px;
  position: relative;
  z-index: 1;
}

.section.head p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 2;
  position: relative;
  z-index: 1;
}

/* Section Styling */
.section {
  padding: 6rem 0;
}

.section header {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
}

.section header::before {
  content: "⚘";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--sakura);
  opacity: 0.6;
}

.section header h2 {
  font-family: "Noto Serif JP", serif;
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--ink);
  letter-spacing: 6px;
}

.section header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 2;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 2px solid var(--bamboo);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sakura), transparent);
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.footer-about {
  flex: 1;
  max-width: 400px;
}

.footer-tagline {
  color: var(--text-secondary);
  line-height: 2;
  font-weight: 300;
}

.footer-links ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: all 0.4s ease;
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--bamboo);
  transition: width 0.4s ease;
}

.footer-links a:hover {
  color: var(--bamboo);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(107, 142, 35, 0.2);
}

.copyright a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
}

/* Animations */
@keyframes fadeInSlow {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInSlow 1s ease forwards;
}

.fade-in:nth-child(1) {
  animation-delay: 0.2s;
}
.fade-in:nth-child(2) {
  animation-delay: 0.4s;
}
.fade-in:nth-child(3) {
  animation-delay: 0.6s;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

body:not(.faq) h3,
:not(section.faq) h3 {
  font-size: 1.7rem;
  color: var(--ink);
  margin-top: 15px;
  margin-bottom: 10px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 2px;
  font-family: "Noto Serif JP", serif;
}
