@charset "UTF-8";

/* ==========================================================================
   EnChord Project - Global Architecture (Refined for Roomy Layout)
   1. CSS CUSTOM PROPERTIES (Single Source of Truth)
   ========================================================================== */
:root {
  /* --- Brand Colors (Core) --- */
  --c-white: #FFFFFF;
  --c-bg-base: #F9F9F6;
  --c-black: #0E0E0E;
  --c-text-main: #2A2A2A;
  --c-text-soft: #3D3D3D;
  --c-text-muted: #6B6B6B;
  --c-blue: #5d95c6;
  --c-blue-light: #7BA3C4;
  --c-blue-pale: #EBF1F6;
  --c-gold: #C5A059;
  --c-gold-light: #D4C5A0;
  --c-gold-pale: #F8F3E8;
  --c-sage: #8A9A5B;
  --c-danger: #D63031;
  --c-border: #E5E0D8;
  --c-warm: #F5F0E8;

  /* --- Semantic Colors (UI Context) --- */
  --bg-body: var(--c-bg-base);
  --bg-card: var(--c-white);
  --text-body: var(--c-text-main);
  --theme-primary: var(--c-blue);
  --theme-accent: var(--c-gold);
  --theme-border: var(--c-border);

  /* --- Typography (Noto Sans JP Unified Strategy) --- */
  /* 見出し・本文ともにNoto Sans JPに統一。ストレスのない最強の見やすさを実現 */
  --font-base: 'Noto Sans JP', "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", Meiryo, sans-serif;

  /* 見出し用変数もNoto Sans JPを参照（ウェイトで差をつける運用） */
  --font-display: 'Noto Sans JP', sans-serif;

  /* 数字や英字の装飾的なワンポイント用（必要に応じて使用） */
  --font-accent: 'DM Serif Display', serif;

  /* --- Layout & Spacing (Adjusted for "Roomy" feel) --- */
  --header-height: 72px;
  /* コンテンツ幅を1100pxから1200pxへ拡張し、左右のゆとりを確保 */
  --max-w-base: 1100px;
  --max-w-wide: 1280px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-base);
  color: var(--text-body);
  background: var(--bg-body);
  line-height: 1.8;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 日本語の文字詰めを最適化 */
  font-feature-settings: "palt";
  /* 1文字落ちを防ぐための禁則処理の強化 */
  line-break: strict;
  overflow-wrap: break-word;
  width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease, color 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-w-base);
  margin: 0 auto;
  padding: 0 24px;
}

/* 固定ヘッダー被り防止 */
[id] {
  scroll-margin-top: calc(var(--header-height) + 2rem);
}

/* ==========================================================================
   3. ANIMATIONS (Common)
   ========================================================================== */
.anim {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim.slide-left {
  transform: translateX(-50px);
}

.anim.slide-right {
  transform: translateX(50px);
}

.anim.scale-in {
  transform: scale(0.92);
}

.anim.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 1000;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade-in-hero {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-scroll-hint {
  from {
    opacity: 0;
    transform: translate(-50%, 30px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes pulse-soft {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.7;
  }
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(249, 249, 246, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.header.scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  font-family: var(--font-base);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-black);
  letter-spacing: 0.04em;
}

.logo span {
  color: var(--c-gold);
}

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

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-text-muted);
  position: relative;
}

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

.nav a:hover {
  color: var(--c-black);
}

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

.nav a.active {
  color: var(--c-black);
  font-weight: 700;
}

.nav a.active::after {
  width: 100%;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 10001;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-black);
  margin: 0 auto;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle span:nth-child(2),
.menu-toggle span:nth-child(3) {
  margin-top: 6px;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   5. COMMON COMPONENTS (Buttons, Breadcrumb, CTA)
   ========================================================================== */
/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--c-blue);
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.btn-primary:hover {
  background: var(--c-black);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(91, 124, 153, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--c-text-main);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid var(--c-border);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.btn-secondary:hover {
  background: var(--c-white);
  border-color: var(--c-blue);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--c-blue);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 100px;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.btn-cta:hover {
  background: var(--c-black);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(91, 124, 153, 0.3);
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem var(--gutter);
  padding-top: calc(var(--header-height) + 1rem);
  background-color: var(--c-bg-base);
  border-bottom: 1px solid rgba(14, 14, 14, 0.05);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  font-size: 0.8rem;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  color: var(--c-text-muted);
}

.breadcrumb li+li::before {
  content: '/';
  margin: 0 0.5rem;
  opacity: 0.5;
}

.breadcrumb a {
  color: var(--c-text-muted);
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--c-gold);
}

.breadcrumb [aria-current="page"] {
  color: var(--c-black);
  font-weight: 500;
  pointer-events: none;
}

/* Global CTA Section */
.global-cta {
  padding: clamp(100px, 15vw, 160px) var(--gutter);
  background-color: var(--c-white);
  text-align: center;
  border-top: 1px solid rgba(14, 14, 14, 0.1);
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
}

.cta-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  /* Noto Sans JP Bold */
  line-height: 1.3;
  color: var(--c-black);
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.cta-action .btn-primary {
  padding: 1.5rem 3.5rem;
  font-size: 1.1rem;
}

/* Scroll Top Button */
#scrollTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-blue);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-md);
}

#scrollTop.visible {
  opacity: 1;
  visibility: visible;
}

#scrollTop:hover {
  background: var(--c-gold) !important;
  transform: translateY(-4px);
}

#scrollTop svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
/* ==========================================================================
   6. FOOTER (Fat Footer Architecture)
   ========================================================================== */
.footer {
  /* 既存の真っ黒ではなく、ほんの少し青みを持たせたリッチなダーク背景 */
  background-color: #0b1118;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  /* 左に広めのスペースを取り、中・右を均等に配置する黄金比レイアウト */
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

/* --- 左カラム：ブランド --- */
.footer .logo { 
  display: inline-block;
  color: #fff; 
  font-size: 2.2rem; /* ロゴを少し大きくし存在感を出す */
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.footer .logo span { color: var(--c-gold); }

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  max-width: 400px;
}

/* --- 中・右カラム：ナビゲーション --- */
.footer-heading {
  font-family: var(--font-base);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.footer-list {
  display: flex;
  flex-direction: column;
}

.footer-list a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-list a:hover {
  color: #fff;
  padding-left: 4px; /* ホバー時に少し右へスライドするマイクロインタラクション */
}

/* ブログ用のアクセントカラー（参考画像を踏襲） */
.footer-list a.accent-link {
  color: #E28C56; /* オレンジ〜ゴールド系の温かみのある色 */
  font-weight: 700;
}
.footer-list a.accent-link:hover {
  color: var(--c-gold);
}

/* 右カラム特有の装飾 */
.footer-mail {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}
.footer-mail:hover {
  color: #fff;
}

.footer-services {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

/* --- フッター下部（コピーライト＆法的リンク） --- */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* 参考画像のような横ライン */
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}
.footer-legal a:hover {
  color: #fff;
}

/* ==========================================================================
   7. RESPONSIVE (Global)
   ========================================================================== */
@media (max-width: 900px) {
  .footer-top {
    /* タブレット時は2列＋1列の構成に折り返す */
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .footer-brand {
    grid-column: 1 / -1; /* 左カラム（ブランド）は横いっぱいに広げる */
  }
  .footer-desc {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .footer {
    padding: 60px 0 32px;
  }
  .footer-top {
    /* スマホ時はすべて縦1列に */
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .nav.open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: #fff;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    gap: 32px;
  }

  .nav.open a {
    font-family: var(--font-base);
    font-size: 1.6rem;
    color: var(--c-black);
    font-weight: 700;
    letter-spacing: 0.1em;
  }

  .nav.open .btn-cta {
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 56px;
  }

  .menu-toggle {
    display: block;
  }

  .header .btn-cta {
    display: none;
  }

  #scrollTop {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}


/* ==========================================================================
   Google reCAPTCHA Badge Hide
   (免責事項をフォーム付近に記載している場合のみ、非表示にすることが許可されています)
   ========================================================================== */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}