/* Basic Reset & Body Style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', 'Arial', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  background: linear-gradient(to right, #89f7fe, #66a6ff);
  color: #333;
  padding: 2rem;
  min-height: 100vh;
}

/* Main Container */
.main-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Glass Card Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* For Safari */
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Header & Navigation */
.site-header {
  text-align: center;
  margin-bottom: 2rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.site-header h1 {
  font-size: 2.5rem;
  font-weight: bold;
}

/* Article Styles */
.article-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #111;
}

.article-meta {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.article-content p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.article-content a {
  color: #0056b3;
  text-decoration: none;
  font-weight: bold;
}

.article-content a:hover {
  text-decoration: underline;
}

.article-content hr {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 2rem 0;
}

/* Links & Buttons */
.button-link {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    background: #0056b3;
    color: #fff !important; /* Added !important to override conflicting styles */
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.button-link:hover {
    background: #003d82;
    text-decoration: none;
}

/* Gemini Speech Bubble */
/* キャラクターセクションのスタイル */
.character-section {
  position: relative;
  min-height: 150px;
  padding: 10px;
}

/* ジョークールのラッパー */
.joecool-wrapper {
  position: relative;
  float: left;
  width: 25%;
  margin-right: 20px;
}

.joecool {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

/* Geminiセクションのスタイル */
.gemini-section {
  display: none;
  position: absolute;
  left: 20px;
  top: 10px;
  width: 50px;
}

/* ジョークール画像ホバー時のみGemini表示 */
.joecool-wrapper:hover .gemini-section {
  display: block;
}

/* 吹き出しのスタイル */
.bubble {
  display: none;
  position: absolute;
  top: -30px;
  left: 0;
  background: white;
  border: 2px solid #333;
  border-radius: 5px;
  padding: 5px 10px;
  white-space: nowrap;
  font-size: 14px;
  z-index: 100;
}

/* Gemini画像ホバー時の吹き出し表示 */
.gemini-section:hover .bubble {
  display: block;
}

/* 吹き出しの矢印 */
.bubble:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

/* Footer */
.site-footer {
  text-align: center;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Style for design switcher link */
.design-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.design-switcher:hover {
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  text-decoration: none;
}

.article-content img {
  max-width: 100%;
  height: auto;
  display: block; /* To remove extra space below image */
  margin: 0 auto; /* Center images */
}

.gemini-hidden-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.article-content p:hover .gemini-hidden-image {
  opacity: 1;
}

.gemini-speech-bubble {
  position: absolute;
  bottom: 100%; /* 画像の上に表示 */
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  margin-bottom: 5px; /* 画像との間に少しスペース */
}

.gemini-speech-bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%; /* 吹き出しの下に三角形 */
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #333;
}

.gemini-hidden-image:hover .gemini-speech-bubble {
  opacity: 1;
}


.gemini-speech-bubble {
  position: absolute;
  bottom: 100%; /* 画像の上に表示 */
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  margin-bottom: 5px; /* 画像との間に少しスペース */
}

.gemini-speech-bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%; /* 吹き出しの下に三角形 */
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #333;
}

.gemini-hidden-image:hover .gemini-speech-bubble {
  opacity: 1;
}