:root {
  --primary-bg: #0a0e14;
  --secondary-bg: #161b22;
  --accent-color: #00d4ff;
  --accent-glow: rgba(0, 212, 255, 0.4);
  --text-primary: #ffffff;
  --text-secondary: #8b949e;
  --success-color: #3fb950;
  --warning-color: #d29922;
  --danger-color: #f85149;
  --glass-bg: rgba(22, 27, 34, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--primary-bg);
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(121, 40, 202, 0.05) 0%, transparent 40%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 0;
  overflow-x: hidden;
}

/* ... (previous styles) ... */

.info-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  animation: fadeIn 1s ease-out 0.2s both;
}

.info-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.info-section p {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.info-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-card li {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

footer {
  margin-top: 4rem;
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--glass-border);
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

footer nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

footer nav a:hover {
  color: var(--accent-color);
}

footer p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* Sub-page Styles */
.sub-page .container {
  max-width: 800px;
}

.content-body {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.content-body h2 {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
}

.content-body p {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.content-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.back-home {
  margin-top: 3rem;
  text-align: center;
}

.back-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent-color);
}

/* Enhanced Content Styles for AdSense */
.content-block {
  margin-bottom: 3rem;
  animation: fadeIn 1s ease-out both;
}

.abbreviation-table-container {
  margin: 1.5rem 0;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
}

.abbreviation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.abbreviation-table th, .abbreviation-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--glass-border);
}

.abbreviation-table th {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-color);
  font-weight: 600;
  white-space: nowrap;
}

.abbreviation-table td {
  color: var(--text-secondary);
}

.abbreviation-table tr:last-child td {
  border-bottom: none;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  transition: transform 0.2s;
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.3);
}

.faq-q {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.faq-a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.email-link a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 700;
}

.contact-info-card {
  background: rgba(0, 212, 255, 0.05);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--accent-color);
  margin: 1.5rem 0;
}

.container {
  max-width: 900px;
  width: 95%;
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

header {
  text-align: center;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 0.2rem;
}

.header-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), 0 0 40px rgba(121, 40, 202, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

h1 {
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(90deg, #00d4ff, #7928ca);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 850px) {
  .main-content {
    grid-template-columns: 1fr;
  }
}

.converter-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.api-settings {
  background: rgba(0, 212, 255, 0.03);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.api-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.api-label span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.api-link {
  font-size: 0.75rem;
  color: var(--accent-color);
  text-decoration: none;
  transition: opacity 0.2s;
}

.api-link:hover { opacity: 0.7; }

.api-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.api-input-row input[type="text"] {
  flex: 1;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.api-status {
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  white-space: nowrap;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.api-status.ready {
  background: rgba(63, 185, 80, 0.1);
  color: var(--success-color);
  border-color: var(--success-color);
}

.api-status.loading {
  background: rgba(210, 153, 34, 0.1);
  color: var(--warning-color);
  border-color: var(--warning-color);
}

.api-status.error {
  background: rgba(248, 81, 73, 0.1);
  color: var(--danger-color);
  border-color: var(--danger-color);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  padding-left: 0.5rem;
}

input[type="text"] {
  background: rgba(48, 54, 61, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.2rem;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-glow);
  background: rgba(48, 54, 61, 0.8);
}

.result-area {
  background: rgba(0, 212, 255, 0.05);
  border: 1px dashed var(--accent-color);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#convertedResult {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  word-break: break-all;
  padding-right: 80px; /* COPYボタンとの重なり防止 */
}

.copy-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-color);
  color: var(--primary-bg);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.copy-btn:hover {
  transform: scale(1.05);
  background: #00b8e6;
}

.copy-btn:active {
  transform: scale(0.95);
}

.candidates-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.char-count {
  text-align: right;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.char-count.warning { color: var(--warning-color); }
.char-count.danger { color: var(--danger-color); }

.candidates-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.candidates-header {
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.candidates-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.candidate-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.candidate-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.candidate-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.candidate-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.candidate-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: var(--text-primary);
}

.candidate-value[contenteditable="true"] {
  border-bottom: 1px dashed rgba(255,255,255,0.3);
  outline: none;
  cursor: text;
  padding: 0 2px;
  transition: border-color 0.2s;
}

.candidate-value[contenteditable="true"]:focus {
  border-bottom-color: var(--accent-color);
}

.candidate-copy-mini {
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  background: var(--glass-border);
  border-radius: 4px;
}

.candidate-copy-btn {
  font-size: 0.7rem;
  padding: 0.4rem 0.8rem;
  background: var(--accent-color);
  color: var(--primary-bg);
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.candidate-copy-btn:hover { background: #00b8e6; transform: scale(1.05); }
.candidate-copy-btn:active { transform: scale(0.95); }

.candidates-empty {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 16px;
  border: 1px dashed var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.placeholder-slot {
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
  opacity: 0.5;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Added for Financial Articles & News Section --- */

.article-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    margin: 2rem 0;
    line-height: 1.8;
}

.article-content h2 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin: 2.5rem 0 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.news-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--glass-border);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.news-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    background: rgba(0, 212, 255, 0.05);
}

.news-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-item h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 1rem 1.5rem;
    background: rgba(0, 212, 255, 0.05);
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
}

