/*
Theme Name: Construction Support
Theme URI: http://dreamsupport1.com
Author: Dream Support
Author URI: http://dreamsupport1.com
Description: 建設業特化型WordPressテーマ - 安全大会、経営支援、資金調達などのサービスを提供する企業向けの完全カスタムテーマ。Figmaデザイン完全準拠、レスポンシブ対応、Contact Form 7統合済み。
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: construction-support
Tags: business, corporate, responsive, custom-template, blog, two-columns, full-width-template

Construction Support WordPress Theme
Copyright 2025 Dream Support
*/

/* ==========================================================================
   基本リセット
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2C3E50;
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   コンテナとレイアウト
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   タイポグラフィ
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #1A3A5C;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #BA0003;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #8F0002;
}

/* ==========================================================================
   ボタン
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #BA0003;
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #8F0002;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(186, 0, 3, 0.3);
}

.btn-secondary {
    background-color: #D4AF37;
    color: #1A3A5C;
}

.btn-secondary:hover {
    background-color: #B8941F;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #BA0003;
    color: #BA0003;
}

.btn-outline:hover {
    background-color: #BA0003;
    color: #FFFFFF;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.site-header {
    background-color: #1A3A5C;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: #FFFFFF;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer {
    background-color: #1A3A5C;
    color: #FFFFFF;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #D4AF37;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #FFFFFF;
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
    color: #D4AF37;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   メインコンテンツ
   ========================================================================== */
.site-main {
    padding: 60px 0;
    min-height: 60vh;
}

/* ==========================================================================
   レスポンシブデザイン
   ========================================================================== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ユーティリティクラス
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* ==========================================================================
   WordPress コアスタイル
   ========================================================================== */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
    color: #666;
}

/* ==========================================================================
   カスタムカラー変数
   ========================================================================== */
:root {
    --color-primary: #1A3A5C;
    --color-accent: #BA0003;
    --color-gold: #D4AF37;
    --color-text: #2C3E50;
    --color-bg: #FFFFFF;
    --color-grey-light: #F5F5F5;
    --color-grey: #CCCCCC;
    --color-grey-dark: #666666;
}
