/*
Theme Name: Funbrew Theme
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: 日本語対応のミニマルで洗練されたWordPressテーマ
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: funbrew
*/

/* ==========================================================================
   リセットと基本スタイル
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue",
                 "Hiragino Sans", "Hiragino Kaku Gothic ProN", "游ゴシック Medium",
                 "YuGothic Medium", "メイリオ", Meiryo, sans-serif;
    font-size: 1.6rem;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "palt" 1;
}

/* フォーカス時のアウトライン除去（スムーズスクロール後） */
[tabindex="-1"]:focus {
    outline: none;
}

/* ==========================================================================
   共通要素
   ========================================================================== */

.container {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

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

a:hover,
a:focus {
    color: #005a8a;
    text-decoration: none;
}

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

/* ==========================================================================
   タイポグラフィ
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #222;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.6rem; }
h3 { font-size: 2.2rem; }
h4 { font-size: 1.8rem; }
h5 { font-size: 1.6rem; }
h6 { font-size: 1.4rem; }

p {
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */

.site-header-custom {
    transition: all 0.3s ease;
}

.site-header-custom.scrolled {
    background-color: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.site-branding {
    flex: 0 0 auto;
}

.site-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #333;
}

.site-description {
    font-size: 1.4rem;
    color: #666;
    margin: 0.5rem 0 0;
}

/* ナビゲーション */
.main-navigation {
    flex: 1 1 auto;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin-left: 3rem;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
}

.main-navigation a:hover {
    color: #0073aa;
}

/* ==========================================================================
   メインコンテンツ
   ========================================================================== */

.site-main {
    padding: 0;
    min-height: 50vh;
}

/* 記事リスト */
article {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid #eee;
}

article:last-child {
    border-bottom: none;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    margin-bottom: 1rem;
}

.entry-title a {
    color: #333;
}

.entry-title a:hover {
    color: #0073aa;
}

.entry-meta {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 1rem;
}

.entry-meta span {
    margin-right: 1.5rem;
}

.entry-content {
    margin-bottom: 2rem;
}

.entry-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.entry-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    margin-left: 3rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* アイキャッチ画像 */
.post-thumbnail {
    margin-bottom: 2rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

/* ページリンク */
.page-links {
    margin: 2rem 0;
    font-weight: 700;
}

/* ナビゲーション */
.post-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 0 1 48%;
}

.post-navigation .nav-next {
    text-align: right;
}


/* ==========================================================================
   フッター
   ========================================================================== */

.site-footer {
    background-color: #333;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-widgets {
    margin-bottom: 3rem;
}

.footer-widgets .widget {
    margin-bottom: 2rem;
}

.footer-widgets .widget-title {
    color: #fff;
    border-bottom-color: #666;
}

.footer-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-navigation li {
    margin: 0 1.5rem;
}

.footer-navigation a {
    color: #ccc;
}

.footer-navigation a:hover {
    color: #fff;
}

.site-info {
    text-align: center;
    font-size: 1.4rem;
    color: #999;
}

.site-info a {
    color: #ccc;
}

/* ==========================================================================
   フォーム
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: inherit;
    font-size: 1.6rem;
}

input[type="submit"],
button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1.6rem;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover,
button:hover {
    background-color: #005a8a;
}

/* 検索フォーム */
.search-form {
    display: flex;
    margin-bottom: 2rem;
}

.search-form input[type="search"] {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.search-form input[type="submit"] {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ==========================================================================
   404ページ
   ========================================================================== */

.error-404 .page-title {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.error-404 .page-content {
    font-size: 1.8rem;
}

/* ==========================================================================
   レスポンシブデザイン
   ========================================================================== */

@media screen and (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    .site-header .container {
        flex-direction: column;
    }
    
    .main-navigation {
        width: 100%;
        margin-top: 2rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-navigation li {
        margin: 0.5rem 0;
        margin-left: 0;
    }
    
    .post-navigation .nav-links {
        flex-direction: column;
    }
    
    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        flex: none;
        width: 100%;
        margin-bottom: 1rem;
        text-align: left;
    }
    
    .footer-navigation ul {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-navigation li {
        margin: 0.5rem 0;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }
    
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.8rem; }
}

/* ==========================================================================
   アクセシビリティ
   ========================================================================== */

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

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   印刷スタイル
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .navigation,
    .widget-area {
        display: none;
    }
    
    .site-main {
        width: 100%;
    }
}