/*
Theme Name: Forgeee
Theme URI: https://example.com/forgeee-theme
Author: Your Name
Author URI: https://example.com
Description: 軽量・高速・長期保守対応のWordPress Classic Theme。ACFブロック対応、独自設定管理、モジュラー設計。
Version: 1.0.5
Tested up to: 6.8
Requires PHP: 8.2
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fg
Domain Path: /languages
*/

/* CSS Variables */
:root {
    --fg-primary-color: #0073aa;
    --fg-secondary-color: #23282d;
    --fg-text-color: #333333;
    --fg-bg-color: #ffffff;
    --fg-border-color: #e0e0e0;

    --fg-font-base: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
    --fg-font-size-base: 16px;
    --fg-line-height-base: 1.7;

    --fg-container-width: 1200px;
    --fg-content-width: 800px;

    --fg-spacing-xs: 0.25rem;
    --fg-spacing-sm: 0.5rem;
    --fg-spacing-md: 1rem;
    --fg-spacing-lg: 2rem;
    --fg-spacing-xl: 3rem;
}

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

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--fg-font-family-body);
    font-size: var(--fg-font-size-base);
    line-height: var(--fg-line-height-base);
    color: var(--fg-text-color);
    background-color: var(--fg-bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
    position: relative;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: var(--fg-spacing-md);
    font-weight: 700;
    line-height: 1.3;
}

p {
    margin-top: 0;
    margin-bottom: var(--fg-spacing-md);
}

/* Container */
.fg-container {
    width: 100%;
    max-width: var(--fg-container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--fg-spacing-md);
    padding-right: var(--fg-spacing-md);
}

/* WordPress Core */
.alignleft {
    float: left;
    margin-right: var(--fg-spacing-md);
}

.alignright {
    float: right;
    margin-left: var(--fg-spacing-md);
}

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

/* Accessibility */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}

/* Utility Classes */
.fg-clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff6b35, #f0532a);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #f0532a, #ff6b35);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    color: currentColor;
}

/* Responsive */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}