﻿/*
Theme Name: My Custom Theme
Author: Self
Description: Final Fixed Version (Block Widget Support)
Version: 7.0
*/

body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; transition: 0.3s; color: #333; }
a:hover { opacity: 0.7; }
img { max-width: 100%; height: auto; vertical-align: bottom; }

header {
    padding-top: 50px;
    padding-bottom: 40px;
    margin-bottom: 0 !important;
    background-color: #e5e5e5;
}

.header-flex-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.site-branding { max-width: 70%; }
.site-title { margin: 0; font-size: 28px; font-weight: bold; line-height: 1.2; }
.site-description { margin: 5px 0 0 0; font-size: 14px; opacity: 0.8; }

.header-ai-area { padding-bottom: 5px; }
.ai-sphere-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50% !important;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.8) 0%, rgba(50,50,50,1) 40%, rgba(0,0,0,1) 100%);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4), inset 0 -5px 15px rgba(255,255,255,0.1);
    color: #fff !important;
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.2);
}
.ai-sphere-btn:hover { transform: scale(1.1); }

nav {
    width: 100%;
    margin-top: 0 !important;
    padding: 5px 0 !important;
    line-height: 1.2 !important;
    display: block;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

nav ul li a { font-weight: bold; display: block; padding: 5px 0; }

.breadcrumb {
    padding: 18px 0 0;
    font-size: 13px;
    color: #666;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    margin-right: 8px;
    color: #999;
}

.breadcrumb-item[aria-current="page"] {
    color: #111;
    font-weight: 700;
}

.site-content { display: flex; justify-content: space-between; padding: 24px 0 50px; }
.main-area { width: 70%; }
.sidebar { width: 25%; }

article, .post, .type-post {
    border-bottom: 1px solid #ccc;
    padding-bottom: 40px;
    margin-bottom: 40px;
    display: block;
}

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

h2.entry-title, .entry-title a {
    font-size: 24px;
    margin-bottom: 15px;
    margin-top: 0;
    border-left: 5px solid #333;
    padding-left: 15px;
    display: block;
}

.read-more a { color: #e57373; font-weight: bold; display: inline-block; margin-top: 10px; }

.sidebar .widget,
.sidebar > div {
    margin-bottom: 40px;
}

.sidebar .widget-title,
.sidebar h2,
.sidebar h3,
.sidebar .wp-block-search__label,
.sidebar .wp-block-group__inner-container h2 {
    font-size: 18px;
    border-bottom: 2px solid #333 !important;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: block;
    width: 100%;
    font-weight: bold;
}

.sidebar ul { padding-left: 20px; }

.site-footer { padding: 30px 0; margin-top: 50px; }

@media (max-width: 768px) {
    .site-content,
    .header-flex-wrapper {
        flex-direction: column;
    }

    .header-flex-wrapper {
        align-items: center;
        text-align: center;
    }

    .main-area,
    .sidebar { width: 100%; }

    nav { width: 100%; }

    .breadcrumb {
        padding-top: 14px;
    }
}
