/*
Theme Name: Bikashyu
Theme URI: https://bikashyu.com
Author: Bikashyu
Author URI: https://bikashyu.com
Description: A modern, minimal, and responsive WordPress block theme perfect for personal portfolios or developers.
Tags: blog, portfolio, one-column, block-theme, dark-mode, minimal
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bikashyu
*/


/* Import Geist Mono */
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&display=swap');
.language-switcher {
  display: flex;
  gap: 0.5rem;
  font-weight: 500;
}

.language-switcher a.lang-link {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.language-switcher a.lang-link:hover {
  background-color: var(--surface-color);
  color: var(--primary-color);
}


:root {
  /* Dark Theme (default) */
  --bg-color: #000000;
  --text-color: #ffffff;
  --surface-color: #111111;
  --primary-color: #0073aa;
  --secondary-color: #005177;
  --muted-color: #bbbbbb;
}

/* --- ロボットモード --- */
body.robot-mode {
  color: #00ff00; /* 全体の文字を緑に */
}

body.robot-mode h1,
body.robot-mode h2,
body.robot-mode h3,
body.robot-mode h4,
body.robot-mode h5,
body.robot-mode h6 {
  color: #00ff00; /* タイトルも緑 */
}

body.robot-mode a {
  color: #00ff00; /* リンクも緑 */
}

/* ホバー時のアクセントは少し明るめの緑 */
body.robot-mode a:hover {
  color: #66ff66;
}
/* Light Theme */
body.light-theme {
  --bg-color: #ffffff;
  --text-color: #000000;
  --surface-color: #f2f2f2;
  --primary-color: #0073aa;
  --secondary-color: #005177;
  --muted-color: #666666;
}
/* Theme toggle button */
.theme-toggle {
  background: none;
  border: 1px solid var(--text-color);
  color: var(--text-color);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background-color: var(--surface-color);
}

/* Responsive: stack nav + toggle on mobile */
@media (max-width: 640px) {
  .wp-block-group.alignfull > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
/* Smooth transition for theme changes */
body, 
.wp-block-group, 
.post-card, 
.wp-block-navigation-link,
.category-panel,
.wp-block-button__link,
.wp-block-query-pagination a {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

/* カーソル非表示 */
body {
  cursor: none;
}

/* カスタムカーソル全体 */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}

/* 外側白円 */
.cursor-circle {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
}

/* カーソル非表示 */
body {
  cursor: none;
}

/* カスタムカーソル全体 */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}

/* 赤円 */
.inner-red-circle {
  width: 12px;
  height: 12px;
  background-color: red;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
}

/* 緑ドット */
.green-dot {
  width: 6px;
  height: 6px;
  background-color: limegreen;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
}


/* 赤円浮遊アニメーション */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}


/* Apply Variables */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.post-card {
  background-color: var(--surface-color);
  color: var(--text-color);
}

.wp-block-navigation-link {
  color: var(--text-color);
}

.wp-block-navigation-link:hover {
  color: var(--primary-color);
}

.category-panel {
  background-color: var(--surface-color);
}

.wp-block-button__link.category-toggle {
  background-color: var(--primary-color);
  color: var(--text-color);
}

.wp-block-button__link.category-toggle:hover {
  background-color: var(--secondary-color);
}

.wp-block-query-pagination a {
  background-color: var(--surface-color);
  color: var(--text-color);
}

.wp-block-query-pagination a:hover {
  background-color: var(--primary-color);
  color: var(--text-color);
}


/* --- Global Styles --- */
body {
    font-family: 'Geist Mono', monospace;
    background-color: #000000;
    color: #ffffff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* --- Header --- */
.wp-block-group.alignfull > .wp-block-navigation__container {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.wp-block-navigation-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.wp-block-navigation-link:hover {
    color: var(--wp--preset--color--primary);
}

.wp-block-group.alignfull {
    background-color: #000000;
    padding: 1rem 2rem;
}

/* --- Footer --- */
.wp-block-group.alignfull p {
    margin: 0;
    color: #ffffff;
    text-align: center;
    font-size: 0.875rem;
}

.wp-block-group.alignfull {
    background-color: #000000;
    padding: 2rem 1rem;
}

/* --- Front Page & Archive Posts Grid --- */
.posts-grid .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .posts-grid .wp-block-post-template {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .posts-grid .wp-block-post-template {
        grid-template-columns: 1fr;
    }
}

/* --- Post Cards --- */
.post-card {
    background-color: #111111;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.post-card h2 a,
.post-card p {
    color: #ffffff;
}

.post-card h2 a:hover {
    color: var(--wp--preset--color--primary);
}

.post-navigation a {
    display: inline-block;
    background-color: #ff0000;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-navigation a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}


.post-navigation a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* --- Buttons --- */
.wp-block-button__link.category-toggle {
    background-color: var(--wp--preset--color--primary);
    color: #ffffff;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.wp-block-button__link.category-toggle:hover {
    background-color: var(--wp--preset--color--secondary);
}

/* --- Category Panel --- */
.category-panel {
    background-color: #111111;
    padding: 1rem;
    border-radius: 0.5rem;
    display: none;
    text-align: center;
}

.category-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-panel li {
    margin: 0.5rem 0;
}

.category-panel a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.category-panel a:hover {
    color: var(--wp--preset--color--primary);
}

/* --- Pagination --- */
.wp-block-query-pagination {
    text-align: center;
    margin-top: 2rem;
}

.wp-block-query-pagination a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.25rem;
    background-color: #111111;
    transition: background 0.3s ease, color 0.3s ease;
}

.wp-block-query-pagination a:hover {
    background-color: var(--wp--preset--color--primary);
    color: #ffffff;
}
/* Page content styles */
.wp-block-post-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1rem;
}

.wp-block-post-content p {
  margin-bottom: 1.5rem;
  color: #e5e5e5;
}

.wp-block-post-content a {
  color: var(--wp--preset--color--primary, #4dc3ff);
  text-decoration: underline;
}

.wp-block-post-content a:hover {
  color: #ffffff;
}


.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-item {
  background: #111;
  color: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.4);
}

.project-item img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.project-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.project-item p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.project-button {
  display: inline-block;
  background: #fff;
  color: #000;
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-button:hover {
  background: #ccc;
  color: #000;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.bikashyu-footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}

.bikashyu-footer p {
  font-size: 0.875rem;
  margin: 0;
  opacity: 0.85;
}
.bikashyu-header {
  background-color: #000;
  color: #fff;
  padding: 1rem 2rem;
}

.bikashyu-header .wp-block-navigation__container {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bikashyu-header .wp-block-navigation-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.bikashyu-header .wp-block-navigation-link:hover {
  color: #00bcd4; /* アクセントカラー */
}

.theme-toggle {
  background: #fff;
  color: #000;
  border: none;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: #ccc;
}

.language-switcher {
  background: #fff;
  color: #000;
  border: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
}
.bikashyu-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff; /* or your header background color */
}

