/*
Theme Name: Muraoka Gyoseishoshi Theme
Theme URI: https://muraoka-gyosei.com
Author: Muraoka Gyoseishoshi Office
Description: むらおか行政書士事務所 公式テーマ（八戸市・青森県全域対応）
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: muraoaka-theme
Tags: business, law, japanese
*/

/* ============================================================
   カスタム CSS（Tailwind で補えない部分）
   ============================================================ */

html { scroll-behavior: smooth; }
body { background-color: #f8fafc; color: #292524; }

/* ---- ロゴを緑（#15803d）に変換するCSSマスク ---- */
/* mask-image の URL は functions.php でテーマ絶対URLを使って wp_add_inline_style で注入 */
.logo-mask {
    background-color: #15803d;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    display: inline-block;
    flex-shrink: 0;
}

/* ---- ヒーロー背景 ---- */
.hero-bg {
    background-image: linear-gradient(135deg, rgba(21, 128, 61, 0.88), rgba(41, 37, 36, 0.92));
    background-size: cover;
    background-position: center;
}

/* ---- セクションタイトル下線 ---- */
.section-title { position: relative; }
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #d97706;
}

/* ---- タブ・コンテンツ ---- */
.tab-btn { transition: all 0.3s ease; }
.tab-content { display: none; animation: fadeIn 0.5s ease; }
.tab-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- サービスカード ---- */
.service-card { cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #15803d;
}

/* ---- フローティングCTA ---- */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---- WP アドミンバーとの競合回避 ---- */
.admin-bar header.fixed { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar header.fixed { top: 46px; }
}

/* ============================================================
   法務ページ・固定ページ コンテンツタイポグラフィ
   ============================================================ */
.legal-page-content {
    color: #374151;
    line-height: 1.9;
    font-size: 1rem;
}

/* 大見出し h2 */
.legal-page-content h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #15803d;
    border-left: 4px solid #d97706;
    padding: 0.5rem 0 0.5rem 0.875rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    background: #f0fdf4;
    border-radius: 0 0.375rem 0.375rem 0;
}

/* 小見出し h3 */
.legal-page-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #292524;
    border-bottom: 2px solid #d97706;
    padding-bottom: 0.375rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

/* h4 */
.legal-page-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #292524;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* 段落 */
.legal-page-content p {
    margin-bottom: 1.25rem;
}

/* リスト */
.legal-page-content ul,
.legal-page-content ol {
    margin: 0.75rem 0 1.25rem 1.5rem;
    padding: 0;
}
.legal-page-content ul {
    list-style-type: disc;
}
.legal-page-content ol {
    list-style-type: decimal;
}
.legal-page-content li {
    margin-bottom: 0.375rem;
    padding-left: 0.25rem;
}
.legal-page-content li::marker {
    color: #15803d;
}

/* リンク */
.legal-page-content a {
    color: #15803d;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}
.legal-page-content a:hover {
    color: #d97706;
}

/* 強調 */
.legal-page-content strong,
.legal-page-content b {
    font-weight: 700;
    color: #292524;
}

/* 水平線 */
.legal-page-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
}

/* ブロック引用 */
.legal-page-content blockquote {
    border-left: 4px solid #d97706;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: #fffbeb;
    color: #78350f;
    border-radius: 0 0.375rem 0.375rem 0;
    font-style: italic;
}

/* テーブル */
.legal-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}
.legal-page-content th,
.legal-page-content td {
    border: 1px solid #d1d5db;
    padding: 0.625rem 0.875rem;
    text-align: left;
}
.legal-page-content th {
    background: #f0fdf4;
    font-weight: 700;
    color: #15803d;
}
.legal-page-content tr:nth-child(even) td {
    background: #f9fafb;
}
