/*
Theme Name:  LegalBase
Theme URI:   https://legalbase.jp/
Description: LegalBase フロントページ専用テーマ。法務担当者向けサービスのランディングページ。
Author:      LegalBase
Author URI:  https://legalbase.jp/
Version:     1.0.0
License:     All Rights Reserved
Text Domain: legalbase
*/

/* ===================================================
   Reset & Base
=================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3',
               Meiryo, 'メイリオ', sans-serif;
  line-height: 1.6;
  color: #333333;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.grecaptcha-badge { 
   visibility: hidden; 
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ===================================================
   WordPress Core Alignment Classes
=================================================== */
.alignleft  { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption  { max-width: 100%; }

/* ===================================================
   Skip Link (Accessibility)
=================================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -999;
}
.skip-link:focus {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  padding: 8px 16px;
  background: #ffffff;
  color: #333a56;
  font-size: 14px;
  font-weight: 700;
  z-index: 9999;
  outline: 2px solid #333a56;
}

/* ===================================================
   Site Header（header.php 共通ヘッダー）
   ※ フロントページは fv-header で上書きされるため
      他ページ（404 / search 等）向けの最低限スタイル
=================================================== */
.site-header {
  width: 100%;
  background: #0a1628;
  padding: 16px 24px;
  display: flex;
  align-items: center;
}

.site-header .site-branding a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.site-header .site-branding img {
  height: 36px;
  width: auto;
}

/* ===================================================
   Site Footer（footer.php 共通フッター）
=================================================== */
.site-footer {
  width: 100%;
  background: #0a1628;
  padding: 32px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-nav a {
  font-size: 13px;
}

/* ===================================================
   汎用ページ（page.php / single.php）
=================================================== */
.page-wrapper {
  max-width: 860px;
  margin: 60px auto;
  padding: 0 24px;
}

.page-wrapper h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
  color: #0a1628;
}

.page-wrapper h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: #0a1628;
}

.page-wrapper h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: #333333;
}

.page-wrapper p {
  margin-bottom: 1.4em;
  line-height: 1.8;
}

.page-wrapper ul,
.page-wrapper ol {
  padding-left: 1.5em;
  margin-bottom: 1.4em;
  list-style: disc;
}

.page-wrapper ol {
  list-style: decimal;
}

.page-wrapper li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

/* ===================================================
   404ページ
=================================================== */
.error-404 {
  text-align: center;
  padding: 100px 24px;
}

.error-404 .error-code {
  font-size: 96px;
  font-weight: 700;
  color: #0a1628;
  line-height: 1;
  margin-bottom: 16px;
}

.error-404 .error-message {
  font-size: 20px;
  color: #555;
  margin-bottom: 32px;
}

.error-404 .back-home {
  display: inline-block;
  padding: 14px 40px;
  background: #333a56;
  color: #fff;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s;
}

.error-404 .back-home:hover {
  background: #272f47;
}
