@charset "UTF-8";

/* ==========================================================================
   EnChord Project - Home Page Architecture (Noto Sans JP Unified)
   1. HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--c-bg-base) 0%, var(--c-warm) 50%, var(--c-blue-pale) 100%);
}

.hero-bg-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg-lines svg {
  position: absolute;
  width: 100%;
  height: 100%;
}
.hero-bg-lines .line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-bg-lines .line-2 { animation-delay: 0.5s; }
.hero-bg-lines .line-3 { animation-delay: 1s; }

.hero-bg-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-gold);
  animation: pulse-soft 4s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w-base);
  margin: 0 auto;
  padding: 50px 24px 80px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-blue);
  border: 1px solid rgba(91, 124, 153, 0.15);
  animation: fade-in-hero 0.8s 0.3s both;
}
.hero-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-gold);
}

.hero h1 {
  /* 見出しをNoto Sans JP Boldに統一 */
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 3.5rem);
  font-weight: 700; 
  line-height: 1.4;
  margin-top: 24px;
  color: var(--c-black);
  letter-spacing: 0.02em;
  animation: fade-in-hero 0.8s 0.5s both;
}
.hero h1 .accent { color: #486e90; }

.hero-sub {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--c-text-soft);
  line-height: 2;
  margin-top: 20px;
  /* 1文字落ちを防ぐため、最大幅を640pxから720pxへ拡張 */
  max-width: 720px;
  animation: fade-in-hero 0.8s 0.7s both;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  animation: fade-in-hero 0.8s 0.9s both;
}
.hero-badge {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 100px;
  border: 1px solid var(--c-border);
  background: rgba(255, 255, 255, 0.6);
  color: var(--c-text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
  animation: fade-in-hero 0.8s 1.1s both;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fade-in-scroll-hint 0.8s 1.5s both;
}
.hero-scroll-hint span {
  font-size: 0.7rem;
  color: var(--c-text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--c-blue), transparent);
  animation: float 2s ease-in-out infinite;
}

/* ==========================================================================
   2. SECTION COMMON UTILITIES
   ========================================================================== */
section { padding: 100px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--c-gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700; /* Noto Sans JP Bold */
  line-height: 1.5;
  color: var(--c-black);
  letter-spacing: 0.02em;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--c-text-muted);
  line-height: 2;
  margin-top: 16px;
  /* レイアウトのゆとりを持たせるため拡張 */
  max-width: 720px;
}

/* ==========================================================================
   3. PAIN SECTION
   ========================================================================== */
.pain { background: var(--c-white); }

.pain-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.pain-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--c-bg-base);
  border: 1px solid var(--c-border);
  transition: border-color 0.3s, box-shadow 0.3s;
  height: 100%;
}
.pain-item:hover {
  border-color: var(--c-blue);
  box-shadow: var(--shadow-sm);
}

.pain-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--c-blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pain-icon svg {
  width: 20px;
  height: 20px;
  color: var(--c-blue);
}

.pain-item-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.pain-item-text p {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  line-height: 1.7;
}

.pain-cost {
  display: inline-block;
  margin-top: 1rem;
  font-size: 12px;
  color: #B11919;
  background: rgba(214, 48, 49, 0.1);
  padding: .25rem .75rem;
  border: 1px solid rgba(214, 48, 49, 0.2);
  border-radius: 30px;
  font-weight: 700;
}

/* --- Future Pain --- */
.future-pain {
  padding: 120px 0;
  background: #1A1A1A;
  color: #F9F9F6;
}
.future-pain-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.pain-core { margin-bottom: 40px; }
.pain-stat {
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: rgba(249, 249, 246, 0.7);
  margin-bottom: 8px;
  font-weight: 500;
}
.pain-num {
  /* 数字部分にのみアクセント用セリフ体を使用し、それ以外をNotoにすることで可読性を維持 */
  font-family: var(--font-accent);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 400;
  color: #F9F9F6;
  line-height: 1.1;
  display: inline-block;
  transition: transform 0.3s ease;
}
.pain-num.counting { transform: scale(1.05); }
.pain-copy {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: #F9F9F6;
}
.pain-facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin: 0 0 40px;
}
.pain-facts li {
  position: relative;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0 0 0 20px;
  color: rgba(249, 249, 246, 0.6);
}
.pain-facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF5151;
}
.pain-close {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: rgba(249, 249, 246, 0.9);
}

/* ==========================================================================
   4. TRANSFORMATION SECTION
   ========================================================================== */
.transformation {
  padding: 140px 0 120px;
  background: var(--c-bg-base);
  position: relative;
}
.transformation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
}
.transformation-head { text-align: center; margin-bottom: 80px; }
.trans-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--c-blue);
  margin-bottom: 24px;
  position: relative;
  text-transform: uppercase;
}
.trans-label::before, .trans-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background-color: #D0D0C8;
}
.trans-label::before { right: calc(100% + 16px); }
.trans-label::after { left: calc(100% + 16px); }

.comparison-block {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  max-width: 960px;
  margin: 0 auto 80px;
}
.comp-side { display: flex; flex-direction: column; }
.comp-tag {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 10px 0;
  margin-bottom: 16px;
}
.comp-before .comp-tag { color: #888; border-bottom: 1px solid #D8D8D0; }
.comp-after .comp-tag { color: var(--c-blue); border-bottom: 2px solid var(--c-blue); }

.comp-body { flex: 1; padding: 48px 40px; border-radius: 4px; }
.comp-before .comp-body { background-color: #F0F0EB; border: 1px solid #E5E5E0; }
.comp-after .comp-body {
  background: linear-gradient(145deg, var(--c-blue) 0%, #4A6A82 100%);
  color: #F9F9F6;
  box-shadow: 0 20px 60px rgba(91, 124, 153, 0.2);
}

.comp-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}
.comp-after .comp-title { border-bottom-color: rgba(255, 255, 255, 0.15); }

.comp-list { display: flex; flex-direction: column; gap: 18px; }
.comp-list li { font-size: 0.95rem; letter-spacing: 0.06em; line-height: 1.6; font-weight: 500; }
.comp-before .comp-list li { color: #777; }
.comp-after .comp-list li { color: rgba(249, 249, 246, 0.9); }
.comp-list li span { font-weight: 700; }
.comp-after .comp-list li span { color: var(--c-gold); }

.comp-arrow { display: flex; align-items: center; justify-content: center; width: 80px; padding-top: 50px; }
.arrow-pulse {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--c-gold);
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.3);
}
.arrow-pulse::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-35%, -50%);
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #F9F9F6;
}
.arrow-pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 1px solid var(--c-gold);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

.outcome-statement {
  text-align: center;
  max-width: 600px; /* 1文字落ち防止のため560pxから拡張 */
  margin: 0 auto;
  padding: 60px 40px;
  background-color: #FAFAF7;
  border: 1px solid #E8E8E3;
  border-radius: 4px;
  position: relative;
}
.outcome-statement::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background-color: var(--c-gold);
}
.outcome-main {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  line-height: 2.2;
  letter-spacing: 0.1em;
  color: #333;
}
.outcome-main span { color: var(--c-blue); font-weight: 700; position: relative; }
.outcome-main span::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 1px; background-color: var(--c-gold);
}

/* ==========================================================================
   5. GUILD SECTION
   ========================================================================== */
.guild { background: var(--c-white); }
.guild-comparison {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  margin-top: 48px;
}
.guild-box { padding: 36px; border-radius: 12px; border: 1px solid var(--c-border); }
.guild-box.vendor { background: var(--c-bg-base); }
.guild-box.enchord { background: var(--c-blue); color: #FFF; border-color: var(--c-blue); }
.guild-vs { display: flex; align-items: center; justify-content: center; }
.guild-vs span { font-weight: 700; color: var(--c-text-muted); font-size: 0.85rem; }

.guild-box h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.7;
}
.guild-flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.guild-node { padding: 8px 14px; border-radius: 8px; font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.vendor .guild-node { background: rgba(0, 0, 0, 0.05); }
.enchord .guild-node { background: rgba(255, 255, 255, 0.15); }
.guild-arrow { font-size: 0.75rem; opacity: 0.5; }

.guild-result { padding: 12px 16px; border-radius: 8px; font-size: 0.88rem; font-weight: 700; }
.vendor .guild-result { background: rgba(197, 160, 89, 0.1); color: var(--c-gold); }
.enchord .guild-result { background: rgba(255, 255, 255, 0.15); color: var(--c-gold-light); }

.guild-body { margin-top: 40px; max-width: 760px; } /* 微拡張 */
.guild-body p { font-size: 0.95rem; line-height: 2; color: var(--c-text-muted); }
.guild-body strong { color: var(--c-black); font-weight: 700; }

/* ==========================================================================
   6. WORKS SECTION
   ========================================================================== */
.works { background: var(--c-bg-base); }
.works-tabs { display: flex; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.works-tab {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-text-muted);
  transition: all 0.3s;
}
.works-tab.active, .works-tab:hover {
  background: var(--c-blue);
  color: #FFF;
  border-color: var(--c-blue);
}
.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 40px; }
.works-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #EAEAEA;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.works-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.works-card:hover .works-thumb img { transform: scale(1.03); }

.works-title {
  font-family: var(--font-display); 
  font-size: 1rem; 
  font-weight: 700; 
  color: var(--c-black); 
  margin-bottom: 12px; 
  line-height: 1.4; 
}
.works-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.works-tag {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-black);
  border: 1px solid var(--c-black);
  border-radius: 100px;
  background: #FFF;
  line-height: 1;
}
.works-more { display: flex; justify-content: center; margin-top: 56px; }

/* ==========================================================================
   7. ABOUT SECTION
   ========================================================================== */
.about { background: var(--c-white); }
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 60px; margin-top: 48px; align-items: start; }
.about-photo-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-warm), var(--c-blue-pale));
  position: relative;
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.about-photo-accent {
  position: absolute;
  bottom: -12px; right: -12px;
  width: 80px; height: 80px;
  border-radius: 12px;
  background: var(--c-gold-pale);
  border: 1px solid var(--c-gold-light);
  z-index: -1;
}
.about-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.about-name-en { font-size: 0.82rem; color: var(--c-text-muted); margin-bottom: 20px; font-weight: 500; }

.about-story { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 100%; }
.about-story p {
  font-size: 0.92rem;
  line-height: 2;
  color: var(--c-text-soft);
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
}
.about-message {
  margin-top: 28px;
  padding: 28px;
  background: var(--c-warm);
  border-radius: 12px;
  border-left: 3px solid var(--c-gold);
  width: 100%;
}
.about-message p {
  font-size: 0.9rem;
  line-height: 2;
  color: var(--c-black);
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
}

/* ==========================================================================
   8. CONTACT SECTION
   ========================================================================== */
.contact { background: var(--c-black); padding: 100px 0; position: relative; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info .section-title {
  font-family: var(--font-display);
  color: #FFF; 
  font-size: 2rem; 
  font-weight: 700;
  margin-bottom: 20px; 
}
.contact-info .section-lead { font-size: 0.95rem; line-height: 1.8; color: rgba(255, 255, 255, 0.7); margin-bottom: 40px; }

.contact-features { display: flex; flex-direction: column; gap: 20px; }
.contact-feature { display: flex; gap: 14px; align-items: flex-start; }
.contact-feature-icon {
  flex-shrink: 0; width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.contact-feature-icon svg { width: 18px; height: 18px; color: var(--c-gold); }
.contact-feature h4 { font-size: 0.9rem; font-weight: 700; color: #FFF; margin-bottom: 2px; }
.contact-feature p { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); line-height: 1.6; }

.contact-form-wrapper {
  background: #FFFFFF;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  color: #333;
}
.contact-form-wrapper label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: #444; }
.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper textarea {
  width: 100%; padding: 10px 14px; background: #FCFCFC; border: 1px solid #E1E4E8;
  border-radius: 6px; font-size: 16px; margin-bottom: 2px; color: #333; -webkit-appearance: none;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.form-checkboxes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-checkbox { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: #555; cursor: pointer; font-weight: 500; }
.emergency-label { border: 1px solid #FF6B6B !important; background: #FFFAFA !important; padding: 8px 12px !important; border-radius: 4px; }
.emergency-text { color: var(--c-danger); font-weight: 700; }

.contact-form-wrapper input.error, .contact-form-wrapper textarea.error {
  border-color: var(--c-danger) !important;
  background-color: #FFF5F5 !important;
  box-shadow: 0 0 0 3px rgba(214, 48, 49, 0.1) !important;
}
.error-msg { color: var(--c-danger); font-size: 0.75rem; font-weight: 700; display: block; min-height: 1rem; margin-top: 4px; margin-bottom: 8px; }

.btn-submit {
  width: 100%; padding: 14px; background: var(--c-blue); color: #FFF; border: none;
  border-radius: 6px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.3s; margin-top: 8px;
  font-family: var(--font-base);
}
.btn-subtext { display: block; font-size: 0.7rem; font-weight: 400; opacity: 0.85; margin-top: 2px; }
.recaptcha-policy { font-size: 0.65rem; color: #BBB; text-align: center; margin-top: 12px; line-height: 1.4; }

/* ==========================================================================
   9. RESPONSIVE (Home Specific)
   ========================================================================== */
@media (max-width: 900px) {
  .pain-items { grid-template-columns: repeat(1, 1fr); }
  .guild-comparison { grid-template-columns: 1fr; gap: 16px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 240px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .comparison-block { grid-template-columns: 1fr; }
  .comp-arrow { width: 100%; height: 80px; padding: 20px 0; }
  .arrow-pulse::before {
    transform: translate(-50%, -35%);
    border-top: 10px solid #F9F9F6; border-bottom: none;
    border-left: 7px solid transparent; border-right: 7px solid transparent;
  }
  .works-grid { grid-template-columns: 1fr; gap: 48px; }
  .future-pain { padding: 60px 0; }
  .pain-num { font-size: 2.5rem; }
  .pain-facts { gap: 12px; align-items: center; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; }
}