/* 京都青春物语风 (Kyoto Youth Story Style) */
:root {
  --bg-color: #FFFDF8;
  --primary-color: #4DB6AC;
  --secondary-color: #B2DFDB;
  --text-color: #3E2723;
  --wood-color: #D7CCC8;
  --wood-dark: #8D6E63;
  --diary-line: #E0F2F1;
  --shadow-soft: 0 8px 30px rgba(77, 182, 172, 0.15);
  --shadow-hover: 0 15px 40px rgba(77, 182, 172, 0.25);
  --font-main: "Noto Serif SC", "Songti SC", serif;
  --font-sans: "Inter", "PingFang SC", sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.8;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% 0%, rgba(255, 253, 248, 1) 0%, rgba(224, 242, 241, 0.2) 100%);
}

.diary-bg {
  background-image: linear-gradient(var(--diary-line) 1px, transparent 1px);
  background-size: 100% 32px;
}

header {
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--wood-color);
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 5%;
  min-height: 70vh;
  gap: 40px;
}

.hero-content {
  flex: 1;
  animation: fadeIn 1s ease-out;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text-color);
}

.hero-title span {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.hero-title span::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 30%;
  bottom: 5px;
  left: 0;
  background-color: rgba(178, 223, 219, 0.5);
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: rgba(62, 39, 35, 0.8);
  font-family: var(--font-sans);
}

.hero-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wood-window {
  border: 12px solid var(--wood-color);
  border-radius: 4px;
  padding: 10px;
  background: white;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
  text-align: center;
}

.wood-window::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 4px;
  background: var(--wood-color);
  transform: translateX(-50%);
}
.wood-window::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 4px;
  background: var(--wood-color);
  transform: translateY(-50%);
}

.wood-window .window-pane {
  background: var(--diary-line);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
  justify-content: center;
  z-index: 2;
  position: relative;
}

.wood-window h3 {
  color: var(--primary-color);
}

.btn-cta {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--primary-color);
  color: white !important;
  text-decoration: none;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(77, 182, 172, 0.4);
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  cursor: pointer;
}

.btn-cta:hover {
  background-color: white;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.features {
  padding: 80px 5%;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.section-title::before {
  content: '✦';
  color: var(--secondary-color);
  margin-right: 10px;
}
.section-title::after {
  content: '✦';
  color: var(--secondary-color);
  margin-left: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.feature-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.feature-desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #666;
}

.pricing {
  padding: 80px 5%;
  background-color: rgba(178, 223, 219, 0.1);
}

.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.price-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  width: 300px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  border: 1px solid var(--diary-line);
  position: relative;
}

.price-card.popular {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.price-name {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.price-amount {
  font-size: 2.5rem;
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 30px;
}

.price-amount span {
  font-size: 1rem;
  color: #888;
}

.price-features {
  list-style: none;
  margin-bottom: 30px;
  text-align: left;
}

.price-features li {
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  position: relative;
  padding-left: 25px;
}

.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.faq {
  padding: 80px 5%;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.faq-q {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.faq-a {
  font-family: var(--font-sans);
  color: #555;
  font-size: 0.95rem;
}

footer {
  background-color: var(--wood-color);
  color: var(--text-color);
  padding: 60px 5% 30px;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-family: var(--font-sans);
  transition: opacity 0.3s;
}

.footer-nav a:hover {
  opacity: 0.7;
}

.seo-links {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.seo-links a {
  color: var(--wood-dark);
  text-decoration: underline;
  font-size: 0.9rem;
}

.copyright {
  font-size: 0.85rem;
  opacity: 0.8;
  border-top: 1px solid rgba(62, 39, 35, 0.1);
  padding-top: 20px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .price-card.popular {
    transform: scale(1);
  }
  .wood-window {
    width: 100%;
    max-width: 300px;
  }
}
