/* カスタムスタイル（UIkit LP拡張） */
:root {
  /* レイアウト */
  --header-height: 72px; /* 初期値、JSで上書き */
}
/* スムーススクロール */
html {
  scroll-behavior: smooth;
}

/* スキップリンク（アクセシビリティ） */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--uk-primary);
  color: var(--uk-background);
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  z-index: 10000;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-warning-accent);
  outline-offset: 2px;
}

/* スクリーンリーダー専用（視覚的に非表示） */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* フォーカススタイル（アクセシビリティ） */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* ヘッダー */
.uk-navbar-container {
  background: var(--uk-background);
}

.uk-navbar-sticky {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.uk-logo {
  font-size: 24px;
  font-weight: bold;
}

main,footer{
  position: relative;
}

/* ヘッダー重なり調整（フロー維持） */
header {
  position: relative;
  z-index: 10;
}



main {
  position: relative;
  margin-top: calc(-1 * var(--header-height));
  /* padding-top: var(--header-height); */
  z-index: 0;
}


/* ヒーローセクション */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--uk-border);
}

.hero h1 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ステップ番号 */
.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border:1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

/* フローリスト */
.flow-list {
  list-style: none;
  padding-left: 0;
  counter-reset: flow-counter;
}

/* カードのホバー効果 */
.uk-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.uk-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* ボタンのホバー効果 */
.uk-button-danger {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.uk-button-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(240, 80, 80, 0.4);
}

/* 無効ボタン */
.uk-button[disabled],
.uk-button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* FAQアコーディオン */
.faq-accordion {
  margin: 0;
  padding: 0;
}

.faq-accordion > div {
  border-bottom: 1px solid var(--uk-border);
}

.faq-accordion dt {
  margin: 0;
}

.faq-accordion dd {
  margin: 0;
  padding: 0 0 15px;
}

.faq-accordion .uk-accordion-title {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 1rem;
  padding: 15px 30px 15px 0;
  cursor: pointer;
  position: relative;
  color: inherit;
}

.faq-accordion .uk-accordion-title::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 13px;
  height: 13px;
  background-image: url("data:image/svg+xml,%3Csvg width='13' height='13' viewBox='0 0 13 13' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline fill='none' stroke='%23666' stroke-width='2' points='1 4 6.5 9 12 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.faq-accordion .uk-open .uk-accordion-title::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-accordion .uk-accordion-content {
  overflow: hidden;
}

/* アコーディオン（従来版） */
.uk-accordion-title {
  font-size: 1rem;
  padding: 15px 0;
}

.uk-accordion-title::before {
  background-image: url("data:image/svg+xml,%3Csvg width='13' height='13' viewBox='0 0 13 13' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline fill='none' stroke='%23666' stroke-width='2' points='1 4 6.5 9 12 4'/%3E%3C/svg%3E");
}

/* フォーム */
.uk-input:focus,
.uk-textarea:focus,
.uk-select:focus {
  border-color: var(--color-focus);
  box-shadow: 0 0 0 3px rgba(var(--uk-focus-outline-rgb), 0.2);
}

/* フォームエラー状態 */
.uk-form-danger,
.uk-input[aria-invalid="true"],
.uk-textarea[aria-invalid="true"] {
  border-color: var(--uk-danger);
}

.uk-form-danger:focus,
.uk-input[aria-invalid="true"]:focus,
.uk-textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(var(--uk-danger-rgb), 0.2);
}

/* エラーメッセージ */
.error-message {
  margin-top: 4px;
}

/* スマホ用固定フッター */
.fixed-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  background: var(--uk-background);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.fixed-footer-phone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  text-decoration: none;
  color: var(--uk-emphasis);
  font-size: 11px;
  font-weight: bold;
  background: var(--uk-light);
  transition: background 0.2s ease;
  gap: 4px;
}

.fixed-footer-phone:hover,
.fixed-footer-phone:focus {
  background: var(--uk-hover-light);
  text-decoration: none;
  color: var(--uk-emphasis);
}

.fixed-footer-contact {
  flex: 1;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* フォーカス可能な見出し（タブ移動用） */
h2[tabindex="-1"]:focus {
  outline: none;
}

/* レスポンシブ対応 */
@media (max-width: 959px) {
  body {
    padding-bottom: 65px;
  }

  .hero {
    min-height: 80vh;
    min-height: 80dvh;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

/* オフキャンバスメニュー */
.uk-offcanvas-bar {
  background: var(--uk-dark);
  padding-top: 20px;
}

.uk-nav-primary > li > a {
  padding: 15px 0;
  font-size: 1.1rem;
}

/* 実績数字の強調 */
.uk-text-large.uk-text-bold {
  font-size: 2rem;
}

@media (max-width: 640px) {
  .uk-text-large.uk-text-bold {
    font-size: 1.5rem;
  }
}

/* アニメーション軽減設定対応 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link {
    transition: none;
  }

  .uk-card,
  .uk-button-danger,
  .fixed-footer-phone,
  .faq-accordion .uk-accordion-title::after {
    transition: none;
  }

  [uk-scrollspy] {
    opacity: 1;
    transform: none;
  }
}

/* ハイコントラストモード対応 */
@media (prefers-contrast: more) {
  .uk-button-danger {
    border: 2px solid currentColor;
  }

  .uk-card {
    border: 1px solid var(--uk-emphasis);
  }

  a:focus-visible,
  button:focus-visible {
    outline-width: 4px;
  }
}

/* 印刷スタイル */
@media print {
  .uk-sticky,
  .fixed-footer,
  .uk-offcanvas,
  .skip-link {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .hero {
    min-height: auto;
    padding: 50px 20px;
    background: var(--uk-focus-outline) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: var(--uk-text);
  }

  a[href^="#"]::after,
  a[href^="tel:"]::after,
  a[href^="mailto:"]::after {
    content: none;
  }
}
