/*
Theme Name: AI Tool Guide
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: 最新のAI技術を、洗練されたインターフェースと共に学ぶためのモダンなWordPressテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ai-tool-guide
*/

:root {
    --black: #000000;
    --white: #ffffff;
    --gray: #666666;
    --border: #eaeaea;
    --accent-blue: rgba(0, 112, 243, 0.4);
    --accent-purple: rgba(121, 40, 202, 0.3);
    --cyan-blue: #41b1d3;
    --cyan-blue-light: rgba(65, 177, 211, 0.15);
    --cyan-blue-glow: rgba(65, 177, 211, 0.5);
	--orange: #d9c1a6;
}

body {
    margin: -2em 0;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
	font-display: swap;
    color: var(--black);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* リンクのデフォルトスタイル */
a {
    color: var(--cyan-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:visited:hover {
    color: #2c8ba8;
}

a:visited {
    color: var(--cyan-blue);
}

::marker {
    color: var(--gray);
}

/* 奥行きを出す背景光 */
.glow-bg {
    position: fixed;
    top: -200px;
    right: -200px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--cyan-blue-glow) 0%, rgba(255,255,255,0) 60%);
    filter: blur(120px);
    z-index: -1;
    opacity: 0.6;
}

/* セクションの区切り用の大きな円形光 */
.glow-bg::before {
    content: '';
    position: absolute;
    bottom: -400px;
    left: -400px;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, var(--cyan-blue-light) 0%, rgba(255,255,255,0) 70%);
    filter: blur(150px);
    opacity: 0.8;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-categories {
	display: flex;
    gap: 2em;
    list-style: none;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--cyan-blue) 0%, var(--orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.cource-grid {
	display: flex;
	gap: 1em;
	flex-wrap: wrap;
	margin: 1em 0;
}

.cource-grid a {
	display: block;	
	width: calc(50% - 0.5em);
}

.cource-grid a img {
	width: 100%;
}


/* 個別投稿ページではヘッダーを追従させない */
body.single header {
    position: relative;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; white-space: nowrap; }

.logo a {
    color: var(--black);
}

.logo a:visited {
    color: var(--black);
}

.nav-links { display: flex; list-style: none; gap: 0.5em; align-items: center; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--gray); font-size: 0.9rem; }
.nav-links a:visited { color: var(--gray); }
.nav-links a:hover { color: var(--cyan-blue); }

/* ボタンにバイオレットの光彩アクセント */
.btn-glow {
    background: var(--cyan-blue);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-glow:visited {
    color: var(--white) !important;
}

.btn-glow:hover {
    background: var(--black);
    color: var(--white) !important;
    box-shadow: 0 0 20px var(--cyan-blue-glow), 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.hero { 
    padding: 100px 0 60px; 
    position: relative;
}

.hero h1 { 
    font-size: 3.5rem; 
    letter-spacing: -0.05em; 
    line-height: 1.1; 
    margin: 0; 
}

.hero h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan-blue) 0%, transparent 100%);
    margin-top: 20px;
    border-radius: 2px;
}

.thin-text { 
    color: var(--gray); 
    font-weight: 400; 
    background: linear-gradient(135deg, var(--cyan-blue) 0%, var(--orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p { 
    color: var(--gray); 
    font-size: 1.25rem; 
    margin-top: 20px; 
}

.main-grid { display: grid; grid-template-columns: 1fr 280px; gap: 60px; padding-bottom: 60px; }

.post-card {
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
    border-radius: 16px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.5);
/*     backdrop-filter: blur(10px); */
/*     overflow: hidden; */
}

/* カードホバー時に境界線が光り、影が強調される */
.post-card:hover {
    border-color: var(--cyan-blue);
    box-shadow: 0 8px 30px rgba(65, 177, 211, 0.2), 0 0 0 1px var(--cyan-blue-glow);
    transform: translateY(-4px);
}

.post-card a {
    text-decoration: none;
    color: inherit;
}

.post-card a:visited {
    color: inherit;
}

/* アイキャッチ画像のコンテナ */
.post-thumbnail {
    width: 100%;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--cyan-blue-light);
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ホバー時に画像がズームイン */
.post-card:hover .post-thumbnail img {
    transform: scale(1.08);
}.thin-text

.post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.tag {
    background: linear-gradient(135deg, var(--cyan-blue) 0%, var(--orange) 100%);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

time { font-size: 0.8rem; color: var(--gray); }

.post-card h3 { 
    font-size: 1.6rem; 
    margin: 15px 0 10px; 
    line-height: 1.4;
    font-weight: 700;
    transition: color 0.3s ease;
}

.post-card:hover h3 {
    color: var(--cyan-blue);
}

p { 
    color: var(--gray); 
    line-height: 1.7;
}

.widget {
    padding: 24px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget:hover {
    border-color: var(--cyan-blue-light);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
}

.widget h4 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--cyan-blue);
    position: relative;
}

.widget h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--cyan-blue);
    border-radius: 2px;
}

/* 検索フォーム */
.search-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.search-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.search-field:focus {
    border-color: var(--cyan-blue);
    box-shadow: 0 0 0 3px var(--cyan-blue-light), 0 0 15px var(--cyan-blue-glow);
    background: var(--white);
}

.search-submit {
    padding: 12px 20px;
    background: var(--cyan-blue);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.search-submit:hover {
    background: #2c8ba8;
    box-shadow: 0 4px 12px var(--cyan-blue-glow);
    transform: translateY(-1px);
}

/* WordPressブロックエディタの検索ブロック */
.wp-block-search__inside-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.wp-block-search__input {
    flex: 1;
    padding: 12px 16px !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
}

.wp-block-search__input:focus {
    border-color: var(--cyan-blue) !important;
    box-shadow: 0 0 0 3px var(--cyan-blue-light), 0 0 15px var(--cyan-blue-glow) !important;
    background: var(--white) !important;
}

.wp-block-search__button {
    padding: 12px 20px !important;
    background: var(--cyan-blue) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.wp-block-search__button:hover {
    background: #2c8ba8 !important;
    box-shadow: 0 4px 12px var(--cyan-blue-glow) !important;
    transform: translateY(-1px);
}

.wp-block-search__button svg {
    fill: currentColor;
}

/* プロフィールウィジェット */
.profile-widget {
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--cyan-blue);
    box-shadow: 0 4px 15px var(--cyan-blue-light);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--black);
}

.profile-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray);
    margin: 0 0 20px;
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.profile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--cyan-blue-light);
    color: var(--cyan-blue);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.profile-social-link:hover {
    background: var(--cyan-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--cyan-blue-glow);
}

.profile-social-link svg {
    display: block;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
    padding: 0;
    list-style: none;
}

.pagination .page-numbers {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.6);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    border-color: var(--cyan-blue);
    background: var(--cyan-blue);
    color: var(--white);
    box-shadow: 0 4px 12px var(--cyan-blue-glow);
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

/* エントリーコンテンツのスタイリング */
.entry-content {
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2em;
    margin-bottom: 0.8em;
    font-weight: 700;
}

.entry-content h2 {
    font-size: 2rem;
    color: var(--black);
    border-left: 4px solid var(--cyan-blue);
    padding-left: 16px;
}

.entry-content a {
    color: var(--cyan-blue);
    text-decoration: none;
    border-bottom: 1px solid var(--cyan-blue-light);
    transition: all 0.3s ease;
}

.entry-content a:hover {
    border-bottom-color: var(--cyan-blue);
    color: #2c8ba8;
}

.entry-content img {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
}

.entry-content blockquote {
    margin: 2em 0;
    padding: 20px 30px;
    border-left: 4px solid var(--cyan-blue);
    background: var(--cyan-blue-light);
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

.entry-content code {
    background: var(--cyan-blue-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.entry-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
}

.entry-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

footer .container--link{
	display: flex;
	justify-content: center;
    gap: 2em;
	padding: 0 1em;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
	.logo { padding-top: 1em; }
    .hero h1 { font-size: 2.5rem; }
	.post-card h3 { font-size: 1.4rem; }
    .main-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .post-card { padding: 20px; }
    .post-thumbnail { height: 200px; }
	.entry-header h1 { font-size: 1.5em !important;}
    .glow-bg { width: 600px; height: 600px; }
    .pagination { flex-wrap: wrap; }
    .search-form { flex-direction: column; }
    .search-submit { width: 100%; }
	.header-categories { display: none; }
}
