/**
 * Kotofy Landing Page Styles
 * Shared between EN and JA versions
 */

:root {
  /* 墨色ベース */
  --sumi: #1a1a1a;
  --sumi-light: #2d2d2d;
  --usuzumi: #6b6b6b;
  --hai: #9a9a9a;

  /* 和紙の白 */
  --washi: #faf9f7;
  --washi-warm: #f5f3ef;
  --washi-grey: #eae8e4;

  /* 和のアクセント（アイコンから抽出） */
  --ai: #2B4F6F;        /* 藍色 */
  --beni: #C85A4E;      /* 紅色 */
  --kin: #C9A86C;       /* 金色 */
  --seiji: #4A8B8D;     /* 青磁色 */

  /* 透過版 */
  --ai-mist: rgba(43, 79, 111, 0.08);
  --beni-mist: rgba(200, 90, 78, 0.06);
  --kin-mist: rgba(201, 168, 108, 0.1);
  --seiji-mist: rgba(74, 139, 141, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Zen Kaku Gothic New', -apple-system, sans-serif;
  color: var(--sumi);
  background: var(--washi);
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

/* 青海波パターン（背景用） */
.seigaiha-bg {
  position: fixed;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Cpath d='M0 50 Q25 0 50 50 Q75 0 100 50' fill='none' stroke='%231a1a1a' stroke-width='1'/%3E%3Cpath d='M-25 50 Q0 0 25 50' fill='none' stroke='%231a1a1a' stroke-width='1'/%3E%3Cpath d='M75 50 Q100 0 125 50' fill='none' stroke='%231a1a1a' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 120px 60px;
  z-index: 0;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: all 0.4s ease;
}

.header.scrolled {
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(20px);
  padding: 16px 48px;
}

.logo {
  font-family: 'Lora', 'Shippori Mincho', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--sumi);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--ai);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

.header-links {
  display: flex;
  gap: 36px;
}

.header-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--usuzumi);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.header-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--ai), var(--seiji));
  transition: width 0.4s ease;
}

.header-link:hover {
  color: var(--sumi);
}

.header-link:hover::after {
  width: 100%;
}

.header-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--washi);
  background: var(--sumi);
  padding: 14px 28px;
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.header-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--ai), transparent);
  transition: left 0.5s ease;
  opacity: 0.3;
}

.header-cta:hover::before {
  left: 100%;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.15);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 48px 100px;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
}

.hero-title {
  font-family: 'Lora', 'Shippori Mincho', serif;
  font-size: clamp(52px, 7vw, 84px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 40px;
  color: var(--sumi);
}

.hero-title span {
  display: inline-block;
  position: relative;
}

/* 筆のかすれ風のアンダーライン */
.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
    var(--ai) 0%,
    var(--seiji) 30%,
    var(--kin) 60%,
    transparent 100%
  );
  opacity: 0.4;
  transform: scaleX(0);
  transform-origin: left;
  animation: brushStroke 1.2s ease 0.5s forwards;
}

@keyframes brushStroke {
  to { transform: scaleX(1); }
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 300;
  color: var(--usuzumi);
  line-height: 1.9;
  max-width: 540px;
  margin-bottom: 56px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--washi);
  background: var(--sumi);
  padding: 20px 40px;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: all 0.4s ease;
  position: relative;
}

.hero-cta::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--ai), var(--seiji), var(--kin));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-cta:hover::after {
  opacity: 1;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(43, 79, 111, 0.2);
}

.hero-cta svg {
  width: 18px;
  height: 18px;
}

/* ===== SECTION BASE ===== */
.section {
  padding: 160px 48px;
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 100px;
}

.section-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ai);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  display: inline-block;
  position: relative;
}

.section-label::before,
.section-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--ai), transparent);
}

.section-label::before {
  right: calc(100% + 16px);
  background: linear-gradient(270deg, var(--ai), transparent);
}

.section-label::after {
  left: calc(100% + 16px);
}

.section-title {
  font-family: 'Lora', 'Shippori Mincho', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--sumi);
}

/* ===== HOW IT WORKS ===== */
.how-section {
  background: var(--washi-warm);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
}

.step {
  text-align: center;
  padding: 40px 24px;
  position: relative;
}

/* 連番の間に墨のライン */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 48px;
  right: -40px;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--hai), transparent);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: transparent;
  border: 1px solid var(--sumi);
  color: var(--sumi);
  font-family: 'Lora', 'Shippori Mincho', serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 36px;
  position: relative;
  transition: all 0.4s ease;
}

.step:hover .step-number {
  background: var(--sumi);
  color: var(--washi);
  border-color: var(--sumi);
  box-shadow: 0 0 0 4px var(--ai-mist);
}

.step-title {
  font-family: 'Lora', 'Shippori Mincho', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--sumi);
}

.step-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--usuzumi);
  line-height: 1.8;
}

/* ===== FEATURES ===== */
.features-section {
  background: var(--washi);
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px 100px;
}

.feature {
  padding: 40px;
  position: relative;
  transition: all 0.4s ease;
  border: 1px solid transparent;
}

/* ホバー時に和色のにじみ */
.feature:hover {
  background: var(--ai-mist);
  border-color: rgba(43, 79, 111, 0.1);
}

.feature:nth-child(2):hover {
  background: var(--seiji-mist);
  border-color: rgba(74, 139, 141, 0.1);
}

.feature:nth-child(3):hover {
  background: var(--beni-mist);
  border-color: rgba(200, 90, 78, 0.08);
}

.feature:nth-child(4):hover {
  background: var(--kin-mist);
  border-color: rgba(201, 168, 108, 0.12);
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  color: var(--usuzumi);
  stroke-width: 1.2;
  transition: color 0.4s ease;
}

.feature:hover .feature-icon {
  color: var(--ai);
}

.feature:nth-child(2):hover .feature-icon {
  color: var(--seiji);
}

.feature:nth-child(3):hover .feature-icon {
  color: var(--beni);
}

.feature:nth-child(4):hover .feature-icon {
  color: var(--kin);
}

.feature-title {
  font-family: 'Lora', 'Shippori Mincho', serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--sumi);
}

.feature-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--usuzumi);
  line-height: 1.8;
}

/* ===== PRICING ===== */
.pricing-section {
  background: var(--washi-grey);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 880px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--washi);
  padding: 56px 48px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(26, 26, 26, 0.08);
}

.pricing-card.featured {
  background: var(--sumi);
  color: var(--washi);
}

/* Proカードに金の細い縁取り */
.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--kin);
  opacity: 0.4;
  pointer-events: none;
}

.pricing-name {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  color: var(--usuzumi);
}

.pricing-card.featured .pricing-name {
  color: var(--kin);
}

.pricing-price {
  font-family: 'Lora', 'Shippori Mincho', serif;
  font-size: 56px;
  font-weight: 400;
  margin-bottom: 8px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.6;
}

.pricing-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--hai);
  margin-bottom: 40px;
}

.pricing-card.featured .pricing-desc {
  color: rgba(250, 249, 247, 0.5);
}

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

.pricing-features li {
  font-size: 14px;
  font-weight: 400;
  padding: 16px 0;
  border-bottom: 1px solid var(--washi-grey);
  display: flex;
  align-items: center;
  gap: 14px;
}

.pricing-card.featured .pricing-features li {
  border-color: rgba(250, 249, 247, 0.1);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features svg {
  width: 16px;
  height: 16px;
  color: var(--seiji);
  flex-shrink: 0;
}

.pricing-card.featured .pricing-features svg {
  color: var(--kin);
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 18px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.pricing-btn-secondary {
  background: transparent;
  color: var(--sumi);
  border: 1px solid var(--sumi);
}

.pricing-btn-secondary:hover {
  background: var(--sumi);
  color: var(--washi);
}

.pricing-btn-primary {
  background: var(--washi);
  color: var(--sumi);
  border: 1px solid var(--washi);
}

.pricing-btn-primary:hover {
  background: transparent;
  color: var(--washi);
  border-color: var(--kin);
}

/* ===== FAQ ===== */
.faq-section {
  background: var(--washi-warm);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--washi-grey);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  padding: 32px 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: 400;
  text-align: left;
  color: var(--sumi);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--ai);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.4s ease;
  color: var(--seiji);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--beni);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer-inner {
  padding-bottom: 32px;
  font-size: 15px;
  font-weight: 300;
  color: var(--usuzumi);
  line-height: 1.9;
}

/* ===== CTA ===== */
.cta-section {
  background: var(--sumi);
  color: var(--washi);
  padding: 180px 48px;
  position: relative;
  overflow: hidden;
}

/* 和風のアクセント装飾 */
.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--ai) 0%, transparent 70%);
  opacity: 0.08;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--kin) 0%, transparent 70%);
  opacity: 0.06;
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: 'Lora', 'Shippori Mincho', serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  margin-bottom: 28px;
  line-height: 1.2;
}

.cta-desc {
  font-size: 17px;
  font-weight: 300;
  color: rgba(250, 249, 247, 0.6);
  margin-bottom: 56px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sumi);
  background: var(--washi);
  padding: 20px 44px;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: all 0.4s ease;
  position: relative;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3),
    0 0 0 1px var(--kin);
}

.cta-btn svg {
  width: 18px;
  height: 18px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--washi);
  color: var(--usuzumi);
  padding: 80px 48px 48px;
  border-top: 1px solid var(--washi-grey);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 80px;
}

.footer-brand {
  flex-shrink: 0;
}

.footer-logo {
  font-family: 'Lora', 'Shippori Mincho', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--sumi);
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.footer-tagline {
  font-size: 13px;
  font-weight: 300;
  color: var(--usuzumi);
}

.footer-columns {
  display: flex;
  gap: 100px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-column-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--ai);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.footer-column a {
  font-size: 14px;
  font-weight: 300;
  color: var(--usuzumi);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--sumi);
}

.footer-bottom {
  max-width: 1200px;
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--washi-grey);
}

.footer-copy {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  font-size: 13px;
  color: var(--usuzumi);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.lang-switcher:hover {
  color: var(--sumi);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .header { padding: 16px 24px; }
  .hero { padding: 120px 24px 80px; }
  .section { padding: 100px 24px; }
  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .step::after { display: none; }
  .features {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pricing-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 120px 24px; }
  .footer-inner {
    flex-direction: column;
    gap: 48px;
    text-align: center;
  }
  .footer-columns {
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
  }
  .seigaiha-bg { display: none; }
  .section-label::before,
  .section-label::after { display: none; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate {
  opacity: 0;
}

.animate.visible {
  animation: fadeUp 0.8s ease forwards;
}
