/*
Theme Name: Phenix Eye Theme
Description: A modern and elegant WordPress theme for Odette HP
Version: 1.0.3
Author: Adentoboy inc.
*/

/* ===============================
   CSS変数（カスタムプロパティ）
   =============================== */
:root {
    --primary-color: #b79550;
    --primary-rgb: 183,149,80;
    --secondary-color: #764ba2;
    --accent-color: #ff6b6b;
    --success-color: #4ecdc4;
    --text-dark: #4d4d4d;
    --text-light: #666666;
    --text-muted: #999999;
    --text-muted-rgb: 153,153,153;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --container-width: 1200px;
    --header-height: 80px;
    /* Customizer-driven defaults (can be overridden by inline customizer vars) */
    --header-bg-color: #1a1a2e;
    --header-text-color: #ffffff;
    --footer-bg-color: #1a1a2e;
    --footer-text-color: #ffffff;
    --base-font-size: 16px;
    --heading-font-weight: 700;
    --logo-width: 150px;
    --border-radius: 8px;
    --box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Local font faces (moved from assets/css/main.css) */
@font-face {
    font-family: 'Zen Kaku Gothic Antique';
    src: url('assets/font/ZenKakuGothicAntique-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zen Kaku Gothic Antique';
    src: url('assets/font/ZenKakuGothicAntique-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zen Kaku Gothic Antique';
    src: url('assets/font/ZenKakuGothicAntique-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zen Kaku Gothic Antique';
    src: url('assets/font/ZenKakuGothicAntique-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zen Kaku Gothic Antique';
    src: url('assets/font/ZenKakuGothicAntique-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Trajan Pro 3 family (moved) */
@font-face {
    font-family: 'Trajan Pro 3';
    src: url('assets/font/TrajanPro3ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Trajan Pro 3';
    src: url('assets/font/TrajanPro3Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Trajan Pro 3';
    src: url('assets/font/TrajanPro3Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Trajan Pro 3';
    src: url('assets/font/TrajanPro3SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Trajan Pro 3';
    src: url('assets/font/TrajanPro3Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Trajan Pro 3';
    src: url('assets/font/TrajanPro3Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bahnschrift';
    src: url('assets/font/Bahnschrift.woff2') format('woff2'),
        url('assets/font/Bahnschrift.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Set base site font to the local Zen Kaku Gothic Antique */
body {
    font-family: 'Zen Kaku Gothic Antique', system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-size: var(--base-font-size);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* ===============================
   タイポグラフィ
   =============================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* ===============================
   レイアウト
   =============================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    padding-top: var(--header-height);
}

/* ===============================
   ヘッダー
   =============================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header .container {
    display: flex;
    align-items: center;
    height: var(--header-height);
}

/* サイトブランディング */
.site-branding {
    display: flex;
    align-items: center;
}

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

.site-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.site-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

/* ナビゲーション */
.main-navigation {
    display: flex;
    align-items: center;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.primary-menu li a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.primary-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.primary-menu li a:hover,
.primary-menu li.current-menu-item a {
    color: var(--accent-color);
}

.primary-menu li a:hover::after,
.primary-menu li.current-menu-item a::after {
    width: 100%;
}

/* ハンバーガーメニュー */
.menu-toggle {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    width: 48px; /* touch-friendly hit area */
    height: 48px;
    border-radius: 8px;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.menu-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(183,149,80,0.18);
}

.hamburger-line {
    width: 26px;
    height: 3px;
    background: var(--primary-color);
    display: block;
    border-radius: 2px;
    transition: transform 0.18s ease, opacity 0.12s ease, background-color 0.12s ease;
}

/* open state (when aria-expanded="true") */
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* when .menu-toggle is hovered, slightly darken background for affordance */
.menu-toggle:hover {
    background-color: rgba(0,0,0,0.03);
}

/* ===============================
   メインコンテンツ
   =============================== */
.site-main {
    padding: 5rem 0;
}

.post-item {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: var(--transition);
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: var(--transition);
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

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

.entry-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--primary-color);
}

.entry-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.entry-content {
    color: var(--text-light);
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    margin-top: 1rem;
    transition: var(--transition);
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* ===============================
   ページネーション
   =============================== */
.posts-navigation {
    margin: 3rem 0;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: block;
    background: var(--bg-white);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.nav-previous a:hover,
.nav-next a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* ===============================
   サイドバー
   =============================== */
.widget-area {
    padding: 2rem 0;
}

.widget {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-dark);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-light);
    display: block;
    transition: var(--transition);
}

.widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

/* ===============================
   フッター
   =============================== */
.site-footer {
    background: var(--footer-bg-color);
    color: var(--primary-color);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

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

.footer-widget-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 0.5rem;
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-widget ul li a:hover {
    color: var(--accent-color);
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: white;
}

.copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===============================
   フォーム
   =============================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button,
input[type="submit"],
input[type="button"] {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* ===============================
   レスポンシブデザイン
   =============================== */
@media (max-width: 768px) {
    .primary-menu {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .site-content {
        padding-top: calc(var(--header-height) + 1rem);
    }
    
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }
    
    .nav-links {
        flex-direction: column;
    }
    
    .site-info {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-menu {
        order: -1;
    }
    
    .footer-widget-area {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-header .container {
        height: 60px;
    }
    
    :root {
        --header-height: 60px;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .widget {
        padding: 1rem;
    }
    
    .site-footer {
        padding: 2rem 0 1rem;
    }
}

/* ===============================
   ユーティリティクラス
   =============================== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.skip-link {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    position: absolute;
    top: -50px;
    left: 1rem;
    z-index: 10000;
    transition: var(--transition);
}

.skip-link:focus {
    top: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.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; }

.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; }
