/**
 * クリティカルCSS - 最優先で読み込まれるスタイル
 * ページの初期レンダリングに必要な最小限のスタイル
 */

/* リセットとベース */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ヘッダーのクリティカルスタイル */
.header {
  position: relative;
  width: 100%;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-main {
  padding: 1rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ロゴエリア */
.logo {
  flex-shrink: 0;
}

.logo-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.logo-image {
  max-width: 200px;
  height: auto;
  display: block;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin: 0;
}

/* ナビゲーション */
.navigation {
  display: none;
  flex: 1;
  justify-content: center;
}

.nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #007cba;
}

/* ヘッダーアクション */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-cta {
  display: none;
  padding: 0.75rem 1.5rem;
  background: #007cba;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.header-cta:hover {
  background: #005a8b;
}

/* モバイルメニューボタン */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.hamburger-line {
  width: 25px;
  height: 2px;
  background: #333;
  transition: all 0.3s ease;
  border-radius: 1px;
}

/* モバイルナビ初期状態 */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.3s ease;
}

/* コンテナ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* メインコンテンツ */
.main-content {
  min-height: 50vh;
  padding: 2rem 0;
}

/* ヒーローセクション */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 0;
}

/* フッター基本 */
.riff-new-footer {
  margin-top: auto;
  background: #2c3e50;
  color: #ffffff;
  padding: 2rem 0 1rem;
}

/* レスポンシブ対応 */
@media (min-width: 769px) {
  .navigation {
    display: flex;
  }

  .header-cta {
    display: inline-block;
  }

  .mobile-menu-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .header-main {
    padding: 0.75rem 0;
  }

  .header-content {
    padding: 0 15px;
  }

  .logo-image {
    max-width: 150px;
  }

  .logo-text {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0 10px;
  }

  .logo-image {
    max-width: 120px;
  }

  .mobile-menu-toggle {
    width: 35px;
    height: 35px;
  }

  .hamburger-line {
    width: 20px;
  }
}

/* ユーティリティ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ページロード状態 */
.page-loaded {
  /* ページ読み込み完了後のスタイル */
}

.css-optimized {
  /* CSS最適化完了後のスタイル */
}
