/* ==========================================
   LifeAssist2 サポートサイト CSS（index.html 用）
   元ファイル: custom-all.css をページ別に分割
   ========================================== */

/* ==========================================
   LifeAssist2 サポートサイト 統合CSS
   適用範囲：トップページ ＋ 下層ガイドページ
   ========================================== */

/* ------------------------------------------
   1. デザイントークン（変数定義）
   ------------------------------------------ */
:root { 
  /* --- 既存トークン（維持） --- */
  --color-azure-36: #0081b7; 
  --color-orange-46: #ed6c00;
  --color-orange-50: #ffa200;
  --color-grey-20: #333333;
  --color-grey-46: #757575;
  --color-grey-87: #dfdfdf;
  --color-grey-93: #eeeeee;
  --color-white: #ffffff;
  
  /* --- 新規追加トークン（Figmaより） --- */
  --color-text-primary: #505050;
  --color-bg-container-orange: #fcf8f6;
  --color-btn-card-hover: #ED6C0010;
  --color-btn-primary-hover: #ED6C0040; 
  --color-border-orange-high: #f6b580;
  --color-border-base: #dfdfdf;
  --color-bg-white: #ffffff;
  --color-bg-blue-low: #1b7893;
  --color-bg-blue-high: #d5f3f7;

  /* --- 余白・タイポグラフィ --- */
  --spacing-xs: 8px;
  --spacing-s: 16px;
  --spacing-m: 24px;
  --spacing-l: 32px;
  --spacing-xl: 40px;

  --font-base: 'Hiragino Kaku Gothic ProN', 'YuGothic', 'SF Pro', sans-serif;
  --font-weight-bold: 700;
  --font-weight-normal: 400;
}

/* ------------------------------------------
   2. ベースリセット（Zendesk環境への干渉防止）
   ------------------------------------------ */
[class^="custom-"] *, 
[class^="custom-"] *::before, 
[class^="custom-"] *::after { 
  box-sizing: border-box;
}

[class^="custom-"] h1,
[class^="custom-"] h2, 
[class^="custom-"] h3, 
[class^="custom-"] p, 
[class^="custom-"] ul, 
[class^="custom-"] ol { 
  margin-top: 0;
}

.custom-top-wrapper {
  margin-top: 0px; /* トップページのみ上部を詰める */
}

/* 横スクロール防止（100vw系のはみ出し対策） */
body {
  overflow-x: hidden;
}

/* ------------------------------------------
   3. 共通・汎用コンポーネント
   ------------------------------------------ */
/* アイコン類 */
.custom-icon-play {
  width: 24px;   /* 必要に応じて数値を変更してください */
  height: 24px;
  object-fit: contain;
}

.custom-icon-large {
  width: 32px;   /* 例：少し大きくしたい場合 */
  height: 32px;
  object-fit: contain;
}

.custom-category-icon {
  width: 24px;   /* 必要に応じて数値を変更してください */
  height: 24px;
  object-fit: contain;
}

.custom-icon-check {
  width: 24px;   /* 必要に応じて数値を変更してください */
  height: 24px;
  object-fit: contain;
}

/* ------------------------------------------
   4. トップページ専用スタイル
   ------------------------------------------ */
.custom-hero-section {
  background-color: var(--color-bg-container-orange);
  padding: 16px var(--spacing-s) 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: auto; /* 100vwを廃止 */
  margin: 0 calc(50% - 50vw); /* 簡潔な中央配置解除 */
  position: relative;
}
.custom-hero-content {
  width: 100%;
}
.custom-hero-eyebrow {
  font-size: 14px;
  font-weight: var(--font-weight-bold);
}
.custom-hero-title {
  font-size: 32px;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-m);
}
.custom-hero-logo {
  max-width: 204px; /* ここをご希望のサイズに調整してください（例: 200px, 320px など） */
  width: 100%;
  height: auto;
}
.custom-hero-subtitle {
  font-size: 16px;
  margin-bottom: -24px;
}

.custom-hero-notice {
  width: 100%;
  max-width: 800px;
  margin-bottom: -32px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 48px;
}

.custom-search-container {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.custom-search-input {
  width: 100%;
  /* 左側のpaddingを48px以上に広げ、アイコン表示領域を確保 */
  padding: 12px 24px 12px 48px; 
  border: 1px solid var(--color-grey-87);
  border-radius: 30px;
  font-size: 16px;
  outline: none;
  background-color: var(--color-white);
  /* アイコンの指定（urlは実際のアセットパスに置換してください） */
  background-image: url('search-icon.svg'); 
  background-repeat: no-repeat;
  background-position: 16px center; /* 左端から16pxの位置に固定 */
  background-size: 20px 20px;
}
.custom-search-input:focus {
  border-color: var(--color-orange-46);
}

.custom-main-container {
  max-width: 992px;
  margin: 0 auto;
  padding: 60px 0 0;
}

.custom-section {
  margin-bottom: 60px;
}
.custom-section-title {
  font-size: 30px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary); /* #505050 相当 */
  margin-bottom: var(--spacing-s);
  display: flex; /* 既存に合わせる */
}
.custom-section-description {
  font-size: 16px;
  margin-bottom: var(--spacing-s);
}
.custom-text-orange {
  color: var(--color-orange-46);
}

.custom-link-wrapper {
  margin-bottom: var(--spacing-m);
}
.custom-text-link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--color-text-primary);
  text-decoration: underline;
  font-size: 16px;
}
.custom-text-link-with-icon:hover {
  opacity: 0.7;
}

.custom-links-bottom {
  margin-top: var(--spacing-m);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

/* トップ: スタートガイドCTAボタン */
.custom-cta-card-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-s);
  background-color: var(--color-bg-container-orange);
  border: 4px solid var(--color-orange-46);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.10);
  color: var(--color-orange-46);
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  padding: 24px;
  margin-bottom: var(--spacing-m);
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
  min-height: 80px;
}
.custom-cta-card-primary:hover,
.custom-cta-card-primary:focus-visible {
  background-color: var(--color-btn-primary-hover);
  border: 4px solid var(--color-orange-46);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.10);
}
.custom-cta-card-primary:focus-visible {
  outline: 2px solid var(--color-orange-46);
  outline-offset: 2px;
}

/* トップ: 4ステップボタン */
.custom-step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-s);
}
.custom-step-card {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-white);
  border: 1px solid var(--color-grey-87);
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  padding: 16px;
  text-align: center;
  min-height: 56px;
  transition: background-color 0.2s, border-color 0.2s;
}
.custom-step-card:hover,
.custom-step-card:focus-visible {
  background-color: var(--color-white);
  border: 1px solid var(--color-orange-46);
}
.custom-step-card:focus-visible {
  outline: 2px solid var(--color-orange-46);
  outline-offset: 2px;
}

/* トップ: アプリ使い方ガイドリンク */
.custom-category-group {
  margin-bottom: var(--spacing-l);
}
.custom-category-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-s);
}
.custom-category-title {
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  margin: 0;
}
.custom-link-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}
.custom-link-card {
display: flex;
  align-items: center;
  background-color: var(--color-white);
  border: 1px solid var(--color-grey-87);
  color: var(--color-orange-46);
  font-size: 18px; /* 16pxから18px(large相当)に変更 */
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  padding: 16px; /* 左右のpaddingを既存に合わせて少し詰める */
  min-height: 56px;
  transition: background-color 0.2s, border-color 0.2s; /* border-colorの遷移を追加 */
}
.custom-link-card:hover,
.custom-link-card:focus-visible {
  background-color: var(--color-btn-card-hover);
  border: 1px solid var(--color-orange-46); /* ホバー時に枠線をオレンジにする */
}

/* ------------------------------------------
   6. レスポンシブ対応 (ブレークポイント 768px未満)
   ------------------------------------------ */
@media (max-width: 767px) {
/* トップページ用 */
.custom-hero-section {
    padding: 8px var(--spacing-s) 0px;
  }
  .custom-main-container {
    padding: 40px 0 0; /*paddingでの左右余白を削除し、marginでの余白確保に一元化 */
  }
  .custom-hero-title {
    font-size: 28px;
  }
  .custom-section-title {
    font-size: 20px;
  }
  .custom-category-title {
    font-size: 18px;
  }
  .custom-cta-card-primary {
    font-size: 16px;
    padding: 20px 16px;
  }
  .custom-step-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
.custom-step-card {
    font-size: 14px;
    justify-content: flex-start;
    padding: 16px var(--spacing-m);
  }
  .custom-hero-logo {
  max-width: 160px; /* ここをご希望のサイズに調整してください（例: 200px, 320px など） */
  width: 100%;
  height: auto;
}
.custom-hero-subtitle {
  font-size: 16px;
  margin-bottom: -24px;
}
}

@media (max-width: 1024px) {
  .custom-main-container {
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* --- Zendesk(style.css) 対策 --- */
/* ボタン・カード系リンクの下線と文字色を強制保護 */
.custom-top-wrapper a.custom-cta-card-primary,
.custom-top-wrapper a.custom-cta-card-primary:hover,
.custom-top-wrapper a.custom-cta-card-primary:focus,
.custom-top-wrapper a.custom-link-card,
.custom-top-wrapper a.custom-link-card:hover,
.custom-top-wrapper a.custom-link-card:focus {
  text-decoration: none !important;
}
.custom-top-wrapper a.custom-step-card,
.custom-top-wrapper a.custom-step-card:hover,
.custom-top-wrapper a.custom-step-card:focus {
  text-decoration: none !important;
  color: var(--color-text-primary) !important;
}