/* Material Design inspired styles for MediaHarbor */

/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=BIZ+UDGothic:wght@400;700&family=Inconsolata:wght@400;700&display=swap");

/* Material Design Color Palette */
:root {
  --md-primary-color: #1976d2;
  --md-primary-dark: #1565c0;
  --md-primary-light: #42a5f5;
  --md-accent-color: #ff9800;
  --md-text-primary: rgba(0, 0, 0, 0.87);
  --md-text-secondary: rgba(0, 0, 0, 0.6);
  --md-text-hint: rgba(0, 0, 0, 0.38);
  --md-divider-color: rgba(0, 0, 0, 0.12);
  --md-background: #ffffff;
  --md-surface: #ffffff;
  --md-error: #b00020;
  --md-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  --md-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.15);
  --md-shadow-large: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "BIZ UDGothic", "Roboto", "Helvetica", "Arial", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--md-text-primary);
  background-color: var(--md-background);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: "Inconsolata", "Consolas", "Monaco", monospace;
  font-size: 0.9em;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  color: #e83e8c;
}

pre {
  background-color: #263238;
  color: #f8f8f2;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  line-height: 1.5;
  box-shadow: var(--md-shadow);
}

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

/* Header & Navigation */
header {
  background-color: var(--md-surface);
  border-bottom: 1px solid var(--md-divider-color);
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

nav {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0.375rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

nav .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 1.5rem;
}

nav .logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
  display: block;
}

nav .logo:hover img {
  transform: scale(1.05);
}

nav ul {
  list-style: none !important;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
}

.desktop-menu {
  display: flex;
}

/* Hide mobile menu on desktop */
.mobile-menu {
  display: none;
}

nav ul li {
  margin: 0;
  list-style: none !important;
  list-style-type: none !important;
}

nav ul li::before,
nav ul li::after,
nav ul li::marker {
  content: none !important;
  display: none !important;
}

nav ul li *::before,
nav ul li *::after {
  content: none !important;
}

nav ul li a {
  text-decoration: none;
  color: var(--md-text-primary);
  font-weight: 500;
  padding: 0.375rem 1.25rem;
  border-radius: 0;
  transition: all 0.2s ease;
  display: block;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
}

nav ul li a:hover {
  background-color: transparent;
  color: var(--md-primary-color);
  text-decoration: none;
  border-bottom-color: var(--md-primary-color);
}

.language-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: auto;
}

.language-switcher span {
  color: var(--md-text-secondary);
  padding: 0.25rem 0.75rem;
  font-size: 0.9rem;
}

.language-switcher a {
  text-decoration: none;
  color: var(--md-primary-color);
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--md-primary-color);
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.language-switcher a:hover {
  background-color: var(--md-primary-color);
  color: #fff;
  text-decoration: none;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--md-text-primary);
  font-size: 1.5rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.menu-toggle:hover {
  color: var(--md-primary-color);
}

.menu-toggle:focus {
  outline: 2px solid var(--md-primary-color);
  outline-offset: 2px;
}

.menu-toggle .material-symbols-outlined {
  font-size: 1.5rem;
}

/* Menu Overlay */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 280px;
  max-width: 80vw;
  background-color: var(--md-surface);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 1rem 0;
}

.mobile-menu.menu-open {
  transform: translateX(0);
}

.mobile-menu li {
  width: 100%;
}

.mobile-menu li a {
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--md-divider-color);
}

.mobile-menu li a:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-bottom-color: var(--md-primary-color);
}

/* Main Content */
main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem 2rem;
  min-height: calc(100vh - 200px);
}

/* Typography */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem;
  color: var(--md-text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--md-text-primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--md-divider-color);
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
  color: var(--md-text-primary);
  line-height: 1.4;
}

h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
  color: var(--md-text-primary);
}

h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: var(--md-text-primary);
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: var(--md-text-secondary);
}

p {
  margin: 1rem 0;
  color: var(--md-text-primary);
  line-height: 1.8;
}

a {
  color: var(--md-primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

/* 通常のリンクのホバー（ボタン風の要素は除外） */
main a:hover,
.content a:hover,
article a:hover,
p a:hover,
li a:hover {
  color: var(--md-primary-dark);
  text-decoration: underline;
}

/* ボタン風の要素には適用しない */
main a[class*="bg-"]:hover,
main a[class*="rounded-full"]:hover,
main a[class*="px-"]:hover,
main a[class*="py-"]:hover,
main a[class*="inline-block"]:hover,
main a[class*="text-white"]:hover,
.content a[class*="bg-"]:hover,
.content a[class*="rounded-full"]:hover,
.content a[class*="px-"]:hover,
.content a[class*="py-"]:hover,
.content a[class*="inline-block"]:hover,
.content a[class*="text-white"]:hover,
article a[class*="bg-"]:hover,
article a[class*="rounded-full"]:hover,
article a[class*="px-"]:hover,
article a[class*="py-"]:hover,
article a[class*="inline-block"]:hover,
article a[class*="text-white"]:hover,
p a[class*="bg-"]:hover,
p a[class*="rounded-full"]:hover,
p a[class*="px-"]:hover,
p a[class*="py-"]:hover,
p a[class*="inline-block"]:hover,
p a[class*="text-white"]:hover,
li a[class*="bg-"]:hover,
li a[class*="rounded-full"]:hover,
li a[class*="px-"]:hover,
li a[class*="py-"]:hover,
li a[class*="inline-block"]:hover,
li a[class*="text-white"]:hover {
  color: #fff !important;
  text-decoration: none !important;
}

/* ボタン風の要素（bg-、rounded、px-、py-、inline-blockなどのクラスを持つaタグ）は色を変えない */
a[class*="bg-"]:hover,
a[class*="rounded"]:hover,
a[class*="px-"]:hover,
a[class*="py-"]:hover,
a[class*="inline-block"]:hover,
a.btn:hover,
.btn a:hover,
button a:hover,
[class*="btn"] a:hover,
[class*="button"] a:hover,
section a[class*="bg-"]:hover,
section a[class*="rounded"]:hover,
section a[class*="px-"]:hover,
section a[class*="py-"]:hover,
section a[class*="inline-block"]:hover {
  text-decoration: none !important;
}

/* 背景が白以外のボタンは文字色を白に固定 */
a[class*="bg-"]:not([class*="bg-white"]):hover,
a[class*="bg-blue"]:hover,
a[class*="bg-gray"]:hover,
a[class*="text-white"]:hover,
section a[class*="bg-"]:not([class*="bg-white"]):hover,
section a[class*="bg-blue"]:hover,
section a[class*="bg-gray"]:hover,
section a[class*="text-white"]:hover {
  color: #fff !important;
}

/* 背景が白のボタンは文字色を青に固定（text-blue-600など） */
a[class*="bg-white"]:hover,
section a[class*="bg-white"]:hover {
  color: inherit !important;
}

/* ボタンや特定の要素内のリンクには下線を表示しない */
button a,
.btn,
.btn a,
a.btn,
[class*="btn"],
[class*="button"],
[role="button"] {
  text-decoration: none !important;
}

button a:hover,
.btn:hover,
.btn a:hover,
a.btn:hover,
[class*="btn"]:hover,
[class*="button"]:hover,
[role="button"]:hover {
  text-decoration: none !important;
}

/* ボタン内のリンクの文字色を白に固定（背景色と同化しないように） */
button a,
.btn a,
a.btn {
  color: #fff !important;
}

button a:hover,
.btn a:hover,
a.btn:hover,
a[class*="bg-"]:hover,
a[class*="rounded"]:hover,
a[class*="px-"]:hover,
a[class*="py-"]:hover,
a[class*="inline-block"]:hover {
  color: #fff !important;
  text-decoration: none !important;
}

/* ランディングページのボタンやCTAセクションのリンクには下線を表示しない */
section a[class*="bg-"],
section a[class*="rounded"],
section a[class*="px-"],
section a[class*="py-"],
section a[class*="inline-block"] {
  text-decoration: none !important;
}

section a[class*="bg-"]:hover,
section a[class*="rounded"]:hover,
section a[class*="px-"]:hover,
section a[class*="py-"]:hover,
section a[class*="inline-block"]:hover {
  text-decoration: none !important;
}

strong {
  font-weight: 700;
  color: var(--md-text-primary);
}

em {
  font-style: italic;
}

blockquote {
  border-left: 4px solid var(--md-primary-color);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--md-text-secondary);
  font-style: italic;
  background-color: rgba(25, 118, 210, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 4px;
}

blockquote p {
  margin: 0.5rem 0;
}

blockquote strong {
  color: var(--md-text-primary);
}

hr {
  border: none;
  border-top: 1px solid var(--md-divider-color);
  margin: 2rem 0;
}

/* Cards */
.card {
  background-color: var(--md-surface);
  border-radius: 8px;
  box-shadow: var(--md-shadow);
  padding: 1.5rem;
  margin: 1.5rem 0;
  transition: all 0.3s ease;
  border: 1px solid var(--md-divider-color);
}

.card:hover {
  box-shadow: var(--md-shadow-hover);
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--md-primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
  font-size: 1rem;
  box-shadow: 0 2px 4px rgba(25, 118, 210, 0.2);
}

.btn:hover {
  background-color: var(--md-primary-dark);
  box-shadow: 0 4px 8px rgba(25, 118, 210, 0.3);
  text-decoration: none !important;
  color: #fff;
  transform: translateY(-1px);
}

.btn a,
a.btn {
  text-decoration: none !important;
  color: #fff !important;
}

.btn a:hover,
a.btn:hover {
  text-decoration: none !important;
  color: #fff !important;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(25, 118, 210, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--md-primary-color);
  border: 2px solid var(--md-primary-color);
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: rgba(25, 118, 210, 0.1);
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--md-primary-color) 0%,
    var(--md-primary-dark) 100%
  );
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--md-primary-dark) 0%, #0d47a1 100%);
  box-shadow: 0 6px 16px rgba(25, 118, 210, 0.4);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.35);
}

.btn-large:hover {
  box-shadow: 0 8px 24px rgba(25, 118, 210, 0.45);
  transform: translateY(-3px);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  box-shadow: var(--md-shadow);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--md-surface);
}

thead {
  background: linear-gradient(
    135deg,
    var(--md-primary-color) 0%,
    var(--md-primary-dark) 100%
  );
  color: #fff;
}

th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--md-divider-color);
  color: var(--md-text-primary);
}

tbody tr {
  transition: background-color 0.2s ease;
}

tbody tr:hover {
  background-color: rgba(25, 118, 210, 0.05);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Lists */
ul,
ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
  line-height: 1.8;
}

li {
  margin: 0.75rem 0;
  color: var(--md-text-primary);
}

ul li {
  list-style-type: disc;
}

ol li {
  list-style-type: decimal;
}

li > ul,
li > ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  display: block;
}

.landing-content img {
  margin: 2rem auto;
}

/* Footer */
footer {
  background-color: #fafafa;
  border-top: 1px solid var(--md-divider-color);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

footer .footer-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  color: var(--md-text-secondary);
}

footer .footer-company {
  margin-bottom: 2rem;
}

footer .footer-logo {
  display: inline-block;
  transition: opacity 0.2s ease;
}

footer .footer-logo:hover {
  opacity: 0.8;
}

footer .company-logo {
  height: 100px;
  width: auto;
  max-width: 400px;
  margin: 0 auto;
}

footer .footer-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

footer .footer-links a {
  color: var(--md-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

footer .footer-links a:hover {
  color: var(--md-primary-color);
  text-decoration: none;
}

/* Release Notes Styles */
.release-notes-list {
  max-width: 1200px;
  margin: 0 auto;
}

.release-notes-list .page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.release-notes-list .page-header h1 {
  margin: 0;
  flex: 1;
}

.rss-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--md-primary-color);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(25, 118, 210, 0.2);
}

.rss-button:hover {
  background-color: var(--md-primary-dark);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(25, 118, 210, 0.3);
  transform: translateY(-1px);
}

.rss-button .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

nav .rss-link {
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--md-text-secondary);
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

nav .rss-link:hover {
  color: var(--md-accent-color);
  border-bottom-color: var(--md-accent-color);
  background-color: transparent;
}

nav .rss-link .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

.release-note-item {
  background-color: var(--md-surface);
  border-radius: 8px;
  box-shadow: var(--md-shadow);
  padding: 2rem;
  margin: 1.5rem 0;
  transition: all 0.3s ease;
  border: 1px solid var(--md-divider-color);
}

.release-note-item:hover {
  box-shadow: var(--md-shadow-hover);
  transform: translateY(-2px);
  border-color: var(--md-primary-light);
}

.release-note-item header {
  margin-bottom: 1rem;
  border-bottom: none;
  padding: 0;
  position: static;
  box-shadow: none;
  background: transparent;
}

.release-note-item h2 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  border-bottom: none;
  padding-bottom: 0;
}

.release-note-item h2 a {
  color: var(--md-text-primary);
  transition: color 0.2s ease;
}

.release-note-item h2 a:hover {
  color: var(--md-primary-color);
  text-decoration: none;
}

.release-note-item .meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--md-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.version-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(
    135deg,
    var(--md-primary-color) 0%,
    var(--md-primary-dark) 100%
  );
  color: #fff;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(25, 118, 210, 0.2);
}

.release-note-item .summary {
  color: var(--md-text-secondary);
  margin: 1rem 0;
  line-height: 1.7;
}

.release-note-item .read-more {
  color: var(--md-primary-color);
  font-weight: 600;
  margin-top: 1rem;
  display: inline-block;
  transition: all 0.2s ease;
}

.release-note-item .read-more:hover {
  color: var(--md-primary-dark);
  transform: translateX(4px);
}

.release-note-item footer {
  margin-top: 1rem;
  margin-left: -2rem;
  margin-right: -2rem;
  margin-bottom: -2rem;
  padding: 1rem 2rem;
  border-top: 1px solid var(--md-divider-color);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.release-notes-list .intro {
  margin-bottom: 3rem;
  color: var(--md-text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  padding: 1.5rem;
  background-color: rgba(25, 118, 210, 0.05);
  border-radius: 8px;
  border-left: 4px solid var(--md-primary-color);
}

.release-note-single {
  max-width: 1200px;
  margin: 0 auto;
}

.release-note-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--md-divider-color);
  z-index: 99;
  box-shadow: none;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--md-text-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb a {
  color: var(--md-primary-color);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--md-primary-dark);
  text-decoration: none;
}

.breadcrumb span {
  color: var(--md-text-hint);
}

.release-note-header .meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
  color: var(--md-text-secondary);
  flex-wrap: wrap;
}

.release-note-content {
  line-height: 1.8;
}

.release-note-content h2 {
  margin-top: 2.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--md-divider-color);
}

.release-note-content h3 {
  margin-top: 2rem;
  color: var(--md-primary-color);
}

.release-note-content h4 {
  margin-top: 1.5rem;
}

.release-note-footer {
  margin-top: 4rem;
  margin-left: -2rem;
  margin-right: -2rem;
  padding: 2rem 2rem 0;
  border-top: 2px solid var(--md-divider-color);
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.pagination a {
  padding: 0.75rem 1.25rem;
  background-color: var(--md-surface);
  border: 2px solid var(--md-divider-color);
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.pagination a:hover {
  background-color: var(--md-primary-color);
  color: #fff;
  border-color: var(--md-primary-color);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--md-shadow);
}

.back-link {
  text-align: center;
  margin-top: 1.5rem;
}

.back-link a {
  color: var(--md-primary-color);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  display: inline-block;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.back-link a:hover {
  background-color: rgba(25, 118, 210, 0.1);
  text-decoration: none;
}

/* Admonitions */
.admonition {
  margin: 1.5rem 0;
  padding: 0;
  border-radius: 8px;
  border-left: 4px solid;
  background-color: rgba(25, 118, 210, 0.05);
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admonition-title {
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin: 0;
}

.admonition-content {
  padding: 1rem 1.5rem;
  color: var(--md-text-primary);
  line-height: 1.7;
}

.admonition-content p {
  margin: 0.5rem 0;
}

.admonition-content p:first-child {
  margin-top: 0;
}

.admonition-content p:last-child {
  margin-bottom: 0;
}

.admonition-content ul,
.admonition-content ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.admonition.admonition-Info {
  border-left-color: #1976d2;
}

.admonition.admonition-Info .admonition-title {
  background-color: #1976d2;
}

.admonition.admonition-Tip {
  border-left-color: #00bcd4;
}

.admonition.admonition-Tip .admonition-title {
  background-color: #00bcd4;
}

.admonition.admonition-Warning {
  border-left-color: #ff9800;
}

.admonition.admonition-Warning .admonition-title {
  background-color: #ff9800;
}

.admonition.admonition-Note {
  border-left-color: #2196f3;
}

.admonition.admonition-Note .admonition-title {
  background-color: #2196f3;
}

.admonition.admonition-Danger {
  border-left-color: #f44336;
}

.admonition.admonition-Danger .admonition-title {
  background-color: #f44336;
}

/* FAQ Styles */
.faq-items {
  margin-top: 3rem;
}

.faq-item {
  background-color: var(--md-surface);
  border-radius: 8px;
  box-shadow: var(--md-shadow);
  padding: 2rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--md-primary-color);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--md-shadow-hover);
  transform: translateX(4px);
}

.faq-question {
  color: var(--md-primary-color);
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}

.faq-answer {
  color: var(--md-text-primary);
  line-height: 1.8;
}

.faq-answer p {
  margin: 0.75rem 0;
}

.faq-answer ul,
.faq-answer ol {
  margin: 0.75rem 0;
}

/* Search Styles */
.search-container {
  max-width: 1200px;
  margin: 2rem auto;
}

#search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  border: 2px solid var(--md-divider-color);
  border-radius: 8px;
  box-sizing: border-box;
  transition: all 0.2s ease;
  font-family: inherit;
}

#search-input:focus {
  outline: none;
  border-color: var(--md-primary-color);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.search-results-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.search-result-item {
  background-color: var(--md-surface);
  border-radius: 8px;
  box-shadow: var(--md-shadow);
  padding: 1.5rem;
  margin: 1rem 0;
  transition: all 0.2s ease;
  border: 1px solid var(--md-divider-color);
}

.search-result-item:hover {
  box-shadow: var(--md-shadow-hover);
  transform: translateY(-2px);
  border-color: var(--md-primary-light);
}

.search-result-item h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.search-result-item h3 a {
  color: var(--md-primary-color);
  transition: color 0.2s ease;
}

.search-result-item h3 a:hover {
  color: var(--md-primary-dark);
  text-decoration: none;
}

.search-result-item .snippet {
  color: var(--md-text-secondary);
  margin: 0.75rem 0;
  line-height: 1.7;
}

.search-result-item .meta {
  font-size: 0.9rem;
  color: var(--md-text-hint);
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-result-item mark {
  background-color: #ffeb3b;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 600;
}

.no-results,
.error {
  text-align: center;
  color: var(--md-text-secondary);
  padding: 3rem 2rem;
  font-size: 1.1rem;
}

/* Landing Page Styles */
.hero-landing {
  background: linear-gradient(135deg, #1e88e5 0%, #42a5f5 50%, #64b5f6 100%);
  color: #fff;
  padding: 8rem 2rem;
  text-align: center;
  margin: -2rem calc(-50vw + 50%) 5rem;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-landing::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.03) 50%,
      transparent 100%
    ),
    linear-gradient(
      0deg,
      transparent 0%,
      rgba(255, 255, 255, 0.03) 50%,
      transparent 100%
    );
  background-size: 200px 200px;
  animation: gridMove 20s linear infinite;
  opacity: 0.5;
}

.hero-landing::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

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

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: float 25s ease-in-out infinite;
  opacity: 0.6;
}

.shape-1 {
  width: 120px;
  height: 80px;
  top: 15%;
  left: 8%;
  animation-delay: 0s;
  transform: rotate(15deg);
  --initial-rotate: 15deg;
}

.shape-2 {
  width: 100px;
  height: 70px;
  top: 55%;
  right: 12%;
  animation-delay: 5s;
  transform: rotate(-10deg);
  --initial-rotate: -10deg;
}

.shape-3 {
  width: 90px;
  height: 60px;
  bottom: 25%;
  left: 15%;
  animation-delay: 10s;
  transform: rotate(20deg);
  --initial-rotate: 20deg;
}

.shape-4 {
  width: 80px;
  height: 55px;
  top: 35%;
  right: 25%;
  animation-delay: 15s;
  transform: rotate(-15deg);
  --initial-rotate: -15deg;
}

.shape-5 {
  width: 110px;
  height: 75px;
  bottom: 15%;
  right: 8%;
  animation-delay: 20s;
  transform: rotate(10deg);
  --initial-rotate: 10deg;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(var(--initial-rotate, 0deg));
  }
  25% {
    transform: translate(40px, -20px)
      rotate(calc(var(--initial-rotate, 0deg) + 90deg));
  }
  50% {
    transform: translate(-30px, 30px)
      rotate(calc(var(--initial-rotate, 0deg) + 180deg));
  }
  75% {
    transform: translate(20px, 40px)
      rotate(calc(var(--initial-rotate, 0deg) + 270deg));
  }
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-logo-title {
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease-out;
  text-align: center;
  width: 100%;
}

.hero-logo-title img {
  height: 100px;
  width: auto;
  max-width: 90%;
  display: block;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin: 0 0 3rem;
  opacity: 0.95;
  font-weight: 300;
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta {
  margin-top: 2rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 3rem;
  background: #fff;
  color: var(--md-primary-color);
  border: none;
  border-radius: 50px;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(25, 118, 210, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-hero:hover::before {
  width: 300px;
  height: 300px;
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: var(--md-primary-color);
}

.btn-hero:active {
  transform: translateY(-1px);
}

.btn-arrow {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.btn-hero:hover .btn-arrow {
  transform: translateX(4px);
}

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

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

.landing-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.landing-content > img:first-of-type {
  display: none; /* ロゴはヒーローセクションに表示するため非表示 */
}

.landing-content > p:first-of-type {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--md-text-primary);
  margin: 2rem 0 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.landing-content h2 {
  margin-top: 5rem;
  padding-bottom: 1rem;
  border-bottom: none;
  font-size: 2.5rem;
  position: relative;
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.landing-content h2:first-of-type {
  margin-top: 3rem;
  padding-top: 2rem;
}

.landing-content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--md-primary-color),
    var(--md-accent-color)
  );
  border-radius: 2px;
}

.landing-content h3 {
  margin-top: 4rem;
  color: var(--md-primary-color);
  font-weight: 700;
  font-size: 1.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--md-divider-color);
}

.landing-content h4 {
  margin-top: 1.5rem;
  color: var(--md-text-primary);
  font-weight: 600;
}

.landing-content img {
  display: block;
  margin: 2.5rem auto;
  max-width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.landing-content img:hover {
  transform: scale(1.02);
}

.landing-content ul,
.landing-content ol {
  margin: 1.5rem 0;
}

.landing-content table {
  margin: 2.5rem 0;
}

.landing-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(25, 118, 210, 0.05) 0%,
    rgba(25, 118, 210, 0.02) 100%
  );
  border-left: 4px solid var(--md-primary-color);
  border-radius: 4px;
}

.landing-content ul,
.landing-content ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  padding-left: 0;
  list-style: none;
}

.landing-content ul li,
.landing-content ol li {
  padding: 1rem 1.5rem;
  background: var(--md-surface);
  border-radius: 8px;
  border-left: 4px solid var(--md-primary-color);
  box-shadow: var(--md-shadow);
  transition: all 0.3s ease;
  line-height: 1.6;
}

.landing-content ul li:hover,
.landing-content ol li:hover {
  transform: translateY(-2px);
  box-shadow: var(--md-shadow-hover);
  border-left-color: var(--md-accent-color);
}

.landing-content ul li::marker,
.landing-content ol li::marker {
  display: none;
}

.landing-content ul li::before {
  content: "✓";
  color: var(--md-primary-color);
  font-weight: 700;
  margin-right: 0.75rem;
  font-size: 1.2em;
}

.landing-content code {
  background: rgba(25, 118, 210, 0.1);
  color: var(--md-primary-dark);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.landing-content pre {
  background: #263238;
  border-radius: 8px;
  box-shadow: var(--md-shadow);
}

.landing-content table {
  box-shadow: var(--md-shadow);
  border-radius: 8px;
  overflow: hidden;
}

.landing-content a {
  color: var(--md-primary-color);
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: underline;
  text-decoration-color: rgba(25, 118, 210, 0.3);
  text-underline-offset: 2px;
}

.landing-content a:hover {
  color: var(--md-primary-dark);
  text-decoration-color: var(--md-primary-color);
}

/* ボタンやCTAセクションのリンクには下線を表示しない */
section a[class*="bg-"],
section a[class*="rounded"],
section a[class*="px-"],
section a[class*="py-"],
section a[class*="inline-block"] {
  text-decoration: none !important;
}

section a[class*="bg-"]:hover,
section a[class*="rounded"]:hover,
section a[class*="px-"]:hover,
section a[class*="py-"]:hover,
section a[class*="inline-block"]:hover {
  text-decoration: none !important;
}

/* Contact Form Styles */
.contact-form {
  margin: 2rem 0;
  padding: 2rem;
  background-color: var(--md-surface);
  border-radius: 8px;
  box-shadow: var(--md-shadow);
}

#asana-form-container {
  min-height: 400px;
}

/* Manual/Getting Started Styles */
.manual-content {
  max-width: 1200px;
  margin: 0 auto;
}

.manual-content h2 {
  margin-top: 3rem;
}

.manual-content h3 {
  margin-top: 2rem;
}

.manual-content img {
  margin: 2rem 0;
}

/* Checkbox Styles */
input[type="checkbox"] {
  margin-right: 0.5rem;
  width: 1.2em;
  height: 1.2em;
  cursor: pointer;
  accent-color: var(--md-primary-color);
}

input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-landing {
    padding: 5rem 1.5rem;
    min-height: 500px;
  }

  .hero-logo-title img {
    height: 70px;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  nav {
    flex-direction: row;
    align-items: center;
    padding: 0.375rem 1rem;
    position: relative;
    max-width: 100%;
    margin: 0;
  }

  nav .logo {
    margin-right: auto;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  nav .logo img {
    height: 28px;
    width: auto;
  }

  /* Show hamburger button on mobile */
  .menu-toggle {
    display: block;
    margin-left: auto;
    order: 2;
  }

  /* Hide desktop menu on mobile */
  .desktop-menu {
    display: none;
  }

  /* Show mobile menu container on mobile */
  .mobile-menu {
    display: block;
  }

  .language-switcher {
    display: none;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  main {
    padding: 1rem;
    max-width: 100%;
    margin: 0;
  }

  .release-note-footer {
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .hero {
    padding: 3rem 1rem;
    margin: -1rem -1rem 2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1.1rem;
  }

  .pagination {
    flex-direction: column;
  }

  .pagination a {
    min-width: 100%;
  }

  table {
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
  }

  th,
  td {
    padding: 0.75rem 0.5rem;
    white-space: nowrap;
  }

  .release-note-item,
  .faq-item,
  .search-result-item {
    padding: 1.25rem;
  }

  .release-note-item footer {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    margin-bottom: -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }

  footer .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-landing {
    padding: 4rem 1rem;
    min-height: 400px;
  }

  .hero-logo-title img {
    height: 60px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn-hero {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .card,
  .release-note-item,
  .faq-item,
  .search-result-item {
    padding: 1rem;
  }

  .version-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
  }
}

/* Print Styles */
@media print {
  header,
  footer,
  .language-switcher,
  nav ul {
    display: none;
  }

  main {
    max-width: 100%;
    padding: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .hero {
    background: #fff;
    color: #000;
    padding: 1rem 0;
    margin: 0;
  }

  .hero h1 {
    color: #000;
    text-shadow: none;
  }
}

/* Details/Summary (Collapsible sections) */
details {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: #f5f5f5;
  border: 1px solid var(--md-divider-color);
  border-radius: 4px;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--md-primary-color);
  padding: 0.5rem;
  margin: -1rem -1rem 1rem -1rem;
  user-select: none;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: "▶";
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 0.2s ease;
  color: var(--md-text-secondary);
}

details[open] summary::before {
  transform: rotate(90deg);
}

details[open] summary {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--md-divider-color);
  padding-bottom: 0.75rem;
}

details > *:not(summary) {
  margin-left: 1.5rem;
}

/* ボタン風の要素のホバー時のスタイルを確実に上書き（最後に配置して優先度を確保） */
a.inline-block:hover,
a[class*="bg-blue"]:hover,
a[class*="bg-gray"]:hover,
a[class*="bg-white"]:hover,
a[class*="rounded-full"]:hover,
a[class*="px-12"]:hover,
a[class*="py-4"]:hover,
a.text-white:hover {
  color: #fff !important;
  text-decoration: none !important;
}
