/*
Theme Name: Astra Child
Template: astra
Description: OCR サービス向けカスタムテーマ
Version: 1.0
*/

/* ===== OCR テーマ カスタムスタイル ===== */

:root {
    --ocr-primary: #c4783a;
    --ocr-secondary: #9a5a28;
    --ocr-accent: #e8a84a;
    --ocr-dark: #1a1410;
    --ocr-light: #faf7f2;
    --ocr-gray: #6b5c50;
}

/* ===== ベース ===== */
body {
    background-color: var(--ocr-light);
    color: #333;
    font-family: 'Segoe UI', 'Noto Sans JP', sans-serif;
}

/* ===== ヘッダー ===== */
.site-header,
#masthead,
.ast-main-header-wrap {
    background: var(--ocr-dark) !important;
    border-bottom: 3px solid var(--ocr-primary) !important;
}

/* サイトタイトル・キャッチフレーズ非表示（カスタムロゴで代替） */
.ast-site-identity .site-title,
.ast-site-identity .site-description {
    display: none !important;
}

/* カスタムロゴ：シンボル＋テキスト */
.algomode-logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
}

.algomode-logo__symbol {
    height: 36px;
    width: auto;
    display: block;
}

.algomode-logo__text {
    height: 24px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .algomode-logo__symbol { height: 28px; }
    .algomode-logo__text   { height: 18px; }
}

/* ===== ナビゲーション ===== */
.main-header-menu .menu-item > a,
.ast-header-custom-item a {
    color: #cce4ff !important;
    font-weight: 500;
}

.main-header-menu .menu-item > a:hover,
.main-header-menu .current-menu-item > a {
    color: var(--ocr-accent) !important;
}

/* ===== ボタン ===== */
.ast-button,
.wp-block-button__link,
.button,
a.button,
input[type="submit"] {
    background: linear-gradient(135deg, var(--ocr-primary), var(--ocr-secondary)) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    padding: 12px 28px !important;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.35) !important;
    transition: all 0.3s ease !important;
}

.ast-button:hover,
.wp-block-button__link:hover,
.button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.5) !important;
    color: #fff !important;
}

/* ===== 見出し ===== */
h1, h2, h3, h4 {
    color: var(--ocr-dark);
    font-weight: 700;
}

h2 {
    position: relative;
    padding-bottom: 12px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--ocr-primary), var(--ocr-accent));
    border-radius: 2px;
}

/* ===== カード・セクション ===== */
.wp-block-column,
.ast-container > .entry-content .wp-block-group {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(26, 115, 232, 0.08);
    transition: box-shadow 0.3s ease;
}

.wp-block-column:hover {
    box-shadow: 0 8px 30px rgba(26, 115, 232, 0.15);
}

/* ===== OCR スキャンラインアニメーション ===== */
@keyframes scanline {
    0%   { top: 0%; opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.wp-block-cover,
.ast-hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ocr-dark) 0%, var(--ocr-secondary) 100%) !important;
}

.wp-block-cover::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ocr-accent), transparent);
    animation: scanline 3s linear infinite;
    pointer-events: none;
}

/* ===== ヒーロー内テキスト ===== */
.wp-block-cover .wp-block-cover__inner-container h1,
.wp-block-cover .wp-block-cover__inner-container h2,
.wp-block-cover .wp-block-cover__inner-container p {
    color: #fff !important;
}

/* ===== 特徴リスト ===== */
.wp-block-list li::marker {
    color: var(--ocr-primary);
}

/* ===== フォーム ===== */
input[type="text"],
input[type="email"],
textarea {
    border: 2px solid #dde8ff !important;
    border-radius: 6px !important;
    transition: border-color 0.3s !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--ocr-primary) !important;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1) !important;
    outline: none !important;
}

/* ===== フッター ===== */
.site-footer,
#colophon,
.ast-small-footer {
    background: var(--ocr-dark) !important;
    color: #8899bb !important;
    border-top: 3px solid var(--ocr-primary) !important;
}

.site-footer a,
#colophon a {
    color: var(--ocr-accent) !important;
}

.site-footer a:hover,
#colophon a:hover {
    color: #fff !important;
}

/* ===== ハイライトバッジ ===== */
.ast-highlight,
mark {
    background: linear-gradient(135deg, var(--ocr-primary), var(--ocr-accent));
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
    .site-header,
    #masthead {
        background: var(--ocr-dark) !important;
    }
}
